Class: Payture::Cheques::Methods::Base
- Inherits:
-
Object
- Object
- Payture::Cheques::Methods::Base
- Defined in:
- lib/payture/cheques/methods/base.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #call(**args) ⇒ Object
-
#initialize(config) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(config) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/payture/cheques/methods/base.rb', line 8 def initialize(config) @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
6 7 8 |
# File 'lib/payture/cheques/methods/base.rb', line 6 def config @config end |
Instance Method Details
#call(**args) ⇒ Object
12 13 14 15 |
# File 'lib/payture/cheques/methods/base.rb', line 12 def call(**args) http_response = make_request(url, params(**args)) build_response(http_response) end |