class Promisepay::WalletAccountResource

Resource for the Wallet Accounts API

Public Instance Methods

find(id) click to toggle source

Get a single wallet account

@see reference.promisepay.com/#show-wallet-account

@param id [String] account ID.

@return [Promisepay::WalletAccount]

# File lib/promisepay/resources/wallet_account_resource.rb, line 15
def find(id)
  response = JSON.parse(@client.get("wallet_accounts/#{id}").body)
  Promisepay::WalletAccount.new(@client, response['wallet_accounts'])
end
model() click to toggle source
# File lib/promisepay/resources/wallet_account_resource.rb, line 4
def model
  Promisepay::WalletAccount
end