Class: CurrencyCloud::WithdrawalAccount

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/currency_cloud/withdrawal_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/withdrawal_account.rb', line 7

def self.find(params = {})
  result = client.get("/", params)
  WithdrawalAccounts.new(:withdrawal_accounts, self, result)
end

.pull_funds(withdrawal_account_id, params = {}) ⇒ Object



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

def self.pull_funds(, params = {})
  result = client.post("#{}/pull_funds", params)
  WithdrawalAccountFunds.new(result)
end