Class: Billsafe::Client

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(base_attributes = {}) ⇒ Client

Returns a new instance of Client.



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

def initialize(base_attributes = {})
  @base_attributes = base_attributes
end

Instance Attribute Details

#base_attributesObject

Returns the value of attribute base_attributes.



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

def base_attributes
  @base_attributes
end

Instance Method Details

#call(method, attributes) ⇒ Object



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

def call(method, attributes)
  Billsafe.request(method, base_attributes.merge(attributes))
end