Class: OFX::BankAccount
- Inherits:
-
OFX::Base::Account
- Object
- OFX::Base::Entity
- OFX::Base::Account
- OFX::BankAccount
- Defined in:
- lib/ofx_kit/bank_account.rb
Overview
Represents a bank (checking or savings) account parsed from an OFX statement.
Example
account = OFX.new("bank.ofx").account
account.account_id #=> "123456789"
account.bank_id #=> "021000021"
account.account_type #=> "CHECKING"
account.currency #=> "USD"
account.balance #=> #<OFX::Balance ...>
account.transactions #=> #<OFX::TransactionCollection ...>
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Account number (String).
-
#account_type ⇒ Object
Account type, e.g.
-
#bank_id ⇒ Object
Routing number of the financial institution (String or
nil). -
#branch_id ⇒ Object
Branch identifier, when present (String or
nil).
Attributes inherited from OFX::Base::Account
Method Summary
Methods inherited from OFX::Base::Entity
ensure_attribute, wired_by_builder
Instance Attribute Details
#account_id ⇒ Object
Account number (String).
19 20 21 |
# File 'lib/ofx_kit/bank_account.rb', line 19 def account_id @account_id end |
#account_type ⇒ Object
Account type, e.g. “CHECKING”, “SAVINGS” (String or nil).
21 22 23 |
# File 'lib/ofx_kit/bank_account.rb', line 21 def account_type @account_type end |
#bank_id ⇒ Object
Routing number of the financial institution (String or nil).
17 18 19 |
# File 'lib/ofx_kit/bank_account.rb', line 17 def bank_id @bank_id end |
#branch_id ⇒ Object
Branch identifier, when present (String or nil).
23 24 25 |
# File 'lib/ofx_kit/bank_account.rb', line 23 def branch_id @branch_id end |