Class: OFX::Document::BankAccount

Inherits:
StatementRequest show all
Defined in:
lib/ofx/document/bank_account.rb

Instance Method Summary collapse

Methods inherited from StatementRequest

#bank_account, #include_transactions

Methods inherited from StatementTransaction

#statement_request, #trnuid

Methods inherited from BankMessageSet

#statement_request

Methods inherited from OFX::Document

#bank, #signon

Methods inherited from Aggregate

#root

Constructor Details

#initialize(options = {}) ⇒ BankAccount

Returns a new instance of BankAccount.



5
6
7
8
9
10
# File 'lib/ofx/document/bank_account.rb', line 5

def initialize(options = {})
  @routing = options[:routing] || (raise Errors::RoutingMissing)
  @account = options[:account] || (raise Errors::AccountMissing)
  @type = (options[:type] || :checking)
  super
end

Instance Method Details

#acctidObject



16
17
18
# File 'lib/ofx/document/bank_account.rb', line 16

def acctid
  @account
end

#accttypeObject



20
21
22
# File 'lib/ofx/document/bank_account.rb', line 20

def accttype
  @type
end

#bankidObject



12
13
14
# File 'lib/ofx/document/bank_account.rb', line 12

def bankid
  @routing
end