Class: Payture::Cheques::Methods::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/payture/cheques/methods/base.rb

Direct Known Subclasses

Create, Status

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#configObject (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