Class: Telleroo::Client
- Inherits:
-
Object
- Object
- Telleroo::Client
- Includes:
- API, Connection, Request
- Defined in:
- lib/telleroo/client.rb
Overview
Client for the Telleroo API
Instance Attribute Summary collapse
-
#last_response ⇒ Object
Returns the value of attribute last_response.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Telleroo::Client
constructor
Initializes a new Client object.
Methods included from API::Transactions
#get_transaction, #transactions
Methods included from API::BankTransfers
#create_adhoc_transfer, #create_transfer
Methods included from API::Recipients
#create_recipient, #delete_recipient, #get_recipient, #recipients
Methods included from API::Accounts
Methods included from Request
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Telleroo::Client
Initializes a new Client object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/telleroo/client.rb', line 20 def initialize( = {}) # Merge the config values from the module and those passed # to the client. = Telleroo.config..merge() # Copy the merged values to this client and ignore those # not part of our configuration Configuration::VALID_CONFIG_KEYS.each do |key| send("#{key}=", [key]) end yield(self) if block_given? end |
Instance Attribute Details
#last_response ⇒ Object
Returns the value of attribute last_response.
14 15 16 |
# File 'lib/telleroo/client.rb', line 14 def last_response @last_response end |