class OFX::Base::Statement
Base class for OFX statement types, aggregating an account, its transactions, and the closing balance.
Attributes
The account associated with this statement (BankAccount or CreditCardAccount).
The closing balance for this statement (Balance or nil).
The transactions in this statement (TransactionCollection).
Public Class Methods
Source
# File lib/ofx_kit/base/statement.rb, line 24 def initialize(account:, transactions:, balance:) @account = account @transactions = transactions @balance = balance end
Creates a new statement. account is a BankAccount or CreditCardAccount. transactions is a TransactionCollection. balance is a Balance or nil.
Public Instance Methods
Source
# File lib/ofx_kit/base/statement.rb, line 32 def bank_statement? = false
Always false.
Source
# File lib/ofx_kit/base/statement.rb, line 35 def credit_card_statement? = false
Always false.