Class: CurrencyCloud::VirtualAccount

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/currency_cloud/virtual_account.rb

Instance Attribute Summary

Attributes included from Resource

#changed_attributes

Class Method Summary collapse

Methods included from Resource

included, #initialize, #inspect

Class Method Details

.find(params = {}) ⇒ Object



7
8
9
10
# File 'lib/currency_cloud/virtual_account.rb', line 7

def self.find(params = {})
  result = client.get('/', params)
  VirtualAccounts.new(:virtual_accounts, self, result)
end

.for_subaccount(subaccount_id, params = {}) ⇒ Object



12
13
14
15
# File 'lib/currency_cloud/virtual_account.rb', line 12

def self.for_subaccount(subaccount_id, params = {})
  result = client.get("subaccounts/#{subaccount_id}", params)
  VirtualAccounts.new(:virtual_accounts, self, result)
end

.for_subaccounts(params = {}) ⇒ Object



17
18
19
20
# File 'lib/currency_cloud/virtual_account.rb', line 17

def self.for_subaccounts(params = {})
  result = client.get("subaccounts/find", params)
  VirtualAccounts.new(:virtual_accounts, self, result)
end