class CurrencyCloud::VirtualAccount

Public Class Methods

find(params = {}) click to toggle source
# 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 = {}) click to toggle source
# 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 = {}) click to toggle source
# 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