Class: OFX::Base::Statement
- Inherits:
-
Object
- Object
- OFX::Base::Statement
- Defined in:
- lib/ofx_kit/base/statement.rb
Overview
Base class for OFX statement types, aggregating an account, its transactions, and the closing balance.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#account ⇒ Object
Returns the value of attribute account.
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
Instance Method Summary collapse
- #bank_statement? ⇒ Boolean
- #credit_card_statement? ⇒ Boolean
-
#initialize(account:, transactions:, balance:) ⇒ Statement
constructor
A new instance of Statement.
Constructor Details
#initialize(account:, transactions:, balance:) ⇒ Statement
Returns a new instance of Statement.
10 11 12 13 14 |
# File 'lib/ofx_kit/base/statement.rb', line 10 def initialize(account:, transactions:, balance:) @account = account @transactions = transactions @balance = balance end |
Instance Attribute Details
#account ⇒ Object
Returns the value of attribute account.
8 9 10 |
# File 'lib/ofx_kit/base/statement.rb', line 8 def account @account end |
#balance ⇒ Object
Returns the value of attribute balance.
8 9 10 |
# File 'lib/ofx_kit/base/statement.rb', line 8 def balance @balance end |
#transactions ⇒ Object
Returns the value of attribute transactions.
8 9 10 |
# File 'lib/ofx_kit/base/statement.rb', line 8 def transactions @transactions end |
Instance Method Details
#bank_statement? ⇒ Boolean
16 |
# File 'lib/ofx_kit/base/statement.rb', line 16 def bank_statement? = false |
#credit_card_statement? ⇒ Boolean
17 |
# File 'lib/ofx_kit/base/statement.rb', line 17 def credit_card_statement? = false |