mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 15:14:52 +00:00
Add a configure method to the class
This commit is contained in:
15
lib/paapi.rb
15
lib/paapi.rb
@@ -8,4 +8,19 @@ require 'paapi/response'
|
||||
module Paapi
|
||||
class Error < StandardError; end
|
||||
class NotImplemented < StandardError; end
|
||||
|
||||
class << self
|
||||
attr_accessor :access_key,
|
||||
:secret_key,
|
||||
:partner_tag,
|
||||
:partner_type,
|
||||
:marketplace,
|
||||
:test_mode
|
||||
|
||||
def configure
|
||||
yield self
|
||||
true
|
||||
end
|
||||
alias_method :config, :configure
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user