module Monzo::Client::Balance
Overview
Exposes methods for dealing with Account
Balance
as defined by the
Balance API documentation.
Direct including types
Defined in:
monzo/client/balance.crInstance Method Summary
-
#balance(account : Monzo::Account)
Fetches balance information for the specified account.
-
#balance(account_id : String)
Returns a Balance object for the specified account_id.
Instance Method Detail
def balance(account : Monzo::Account)
#
Fetches balance information for the specified account.
account = client.accounts.first
client.balance(account) # => #<Monzo::Balance:0x10bd82b70 @balance=12747, @currency="GBP", @spend_today=0>