Sha256: 81b933a303ce9dd7cf92089304be89b1e2fc3709306c5d2aa4e64f4a9690324b
Contents?: true
Size: 703 Bytes
Versions: 4
Compression:
Stored size: 703 Bytes
Contents
require_relative "model.rb" module Figo # Retrieve balance of an account. # # @return [AccountBalance] account balance object def get_account_balance(account_id) query_api_object AccountBalance, "/rest/accounts/#{account_id}/balance" end # Modify balance or account limits # # @param account_id [String] ID of the account which balance should be modified # @param account_balance [AccountBalance] modified AccountBalance to be saved # @return [AccountBalance] modified AccountBalance returned by server def modify_account_balance(account_id, account_balance) query_api_object AccountBalance, "/rest/accounts/#{account_id}/balance", account_balance.dump(), "PUT" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
figo-1.4.2 | lib/account_balance/api_call.rb |
figo-1.4.1 | lib/account_balance/api_call.rb |
figo-1.4.0 | lib/account_balance/api_call.rb |
figo-1.3.3 | lib/account_balance/api_call.rb |