Class: Laundry::PaymentsGateway::Client
Instance Attribute Summary
#merchant, #record
Instance Method Summary
collapse
#blank?, dump, #dumpable, from_response, load, #method_missing, #require_merchant!, #to_hash
Instance Method Details
#accounts_driver ⇒ Object
Also known as:
accounts
14
15
16
17
|
# File 'lib/laundry/payments_gateway/models/client.rb', line 14
def accounts_driver
require_merchant!
AccountDriver.new(self, self.merchant)
end
|
#id ⇒ Object
10
11
12
|
# File 'lib/laundry/payments_gateway/models/client.rb', line 10
def id
client_id
end
|
#initialize_with_response(response) ⇒ Object
6
7
8
|
# File 'lib/laundry/payments_gateway/models/client.rb', line 6
def initialize_with_response(response)
self.record = response[:get_client_response][:get_client_result][:client_record]
end
|