Class: OFX::BankAccount

Inherits:
OFX::Base::Account show all
Defined in:
lib/ofx_kit/bank_account.rb

Overview

Represents a bank (checking or savings) account parsed from an OFX statement.

Example

 = OFX.new("bank.ofx").
.    #=> "123456789"
.bank_id       #=> "021000021"
.  #=> "CHECKING"
.currency      #=> "USD"
.balance       #=> #<OFX::Balance ...>
.transactions  #=> #<OFX::TransactionCollection ...>

Instance Attribute Summary collapse

Attributes inherited from OFX::Base::Account

#currency

Method Summary

Methods inherited from OFX::Base::Entity

ensure_attribute, wired_by_builder

Instance Attribute Details

#account_idObject

Account number (String).



19
20
21
# File 'lib/ofx_kit/bank_account.rb', line 19

def 
  @account_id
end

#account_typeObject

Account type, e.g. “CHECKING”, “SAVINGS” (String or nil).



21
22
23
# File 'lib/ofx_kit/bank_account.rb', line 21

def 
  @account_type
end

#bank_idObject

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_idObject

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