class ArmorPayments::Accounts
Public Instance Methods
bankaccounts(account_id)
click to toggle source
# File lib/armor_payments/api/accounts.rb, line 14 def bankaccounts account_id ArmorPayments::BankAccounts.new(host, authenticator, uri(account_id)) end
create(data)
click to toggle source
# File lib/armor_payments/api/accounts.rb, line 4 def create data headers = authenticator.secure_headers 'post', uri request :post, { path: uri, headers: headers, body: JSON.generate(data) } end
update(account_id, data)
click to toggle source
# File lib/armor_payments/api/accounts.rb, line 9 def update account_id, data headers = authenticator.secure_headers 'post', uri(account_id) request :post, { path: uri(account_id), headers: headers, body: JSON.generate(data) } end
users(account_id)
click to toggle source
# File lib/armor_payments/api/accounts.rb, line 18 def users account_id ArmorPayments::Users.new(host, authenticator, uri(account_id)) end