Class: Hyperwallet::Program::Account
- Inherits:
-
HyperwalletObject
- Object
- HyperwalletObject
- Hyperwallet::Program::Account
- Defined in:
- lib/hyperwallet/program.rb
Instance Attribute Summary
Attributes inherited from HyperwalletObject
Class Method Summary collapse
Methods inherited from HyperwalletObject
attributes, construct_from, convert_to_hyperwallet_object, #initialize, #method_missing, relations, #respond_to_missing?
Constructor Details
This class inherits a constructor from Hyperwallet::HyperwalletObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Hyperwallet::HyperwalletObject
Class Method Details
.balances(program_key, account_key) ⇒ Object
16 17 18 19 |
# File 'lib/hyperwallet/program.rb', line 16 def self.balances(program_key, account_key) res = Hyperwallet.request(:get, "/programs/#{program_key}/accounts/#{account_key}/balances") convert_to_hyperwallet_object(res, Account) end |
.find(program_key, account_key) ⇒ Object
11 12 13 14 |
# File 'lib/hyperwallet/program.rb', line 11 def self.find(program_key, account_key) res = Hyperwallet.request(:get, "/programs/#{program_key}/accounts/#{account_key}") convert_to_hyperwallet_object(res, Account) end |