Class: Laundry::PaymentsGateway::Client

Inherits:
ResponseModel show all
Defined in:
lib/laundry/payments_gateway/models/client.rb

Instance Attribute Summary

Attributes inherited from ResponseModel

#merchant, #record

Instance Method Summary collapse

Methods inherited from ResponseModel

#blank?, dump, #dumpable, from_response, load, #method_missing, #require_merchant!, #to_hash

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Laundry::PaymentsGateway::ResponseModel

Instance Method Details

#accounts_driverObject 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

#idObject



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