Class: Payture::Cheques::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ Client

Returns a new instance of Client.



7
8
9
# File 'lib/payture/cheques/client.rb', line 7

def initialize(**options)
  @config = Config.new(**options)
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



5
6
7
# File 'lib/payture/cheques/client.rb', line 5

def config
  @config
end

Instance Method Details

#create(**args) ⇒ Object



11
12
13
# File 'lib/payture/cheques/client.rb', line 11

def create(**args)
  Methods::Create.new(config).call(**args)
end

#status(**args) ⇒ Object



15
16
17
# File 'lib/payture/cheques/client.rb', line 15

def status(**args)
  Methods::Status.new(config).call(**args)
end