Class: Aranha::Parsers::Ofx::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/aranha/parsers/ofx/data.rb,
lib/aranha/parsers/ofx/data/status.rb,
lib/aranha/parsers/ofx/data/account.rb,
lib/aranha/parsers/ofx/data/sign_on.rb,
lib/aranha/parsers/ofx/data/position.rb,
lib/aranha/parsers/ofx/data/institute.rb,
lib/aranha/parsers/ofx/data/statement.rb,
lib/aranha/parsers/ofx/data/transaction.rb,
lib/aranha/parsers/ofx/data/account_info.rb,
lib/aranha/parsers/ofx/data/bank_account.rb,
lib/aranha/parsers/ofx/data/credit_account.rb,
lib/aranha/parsers/ofx/data/monetary_support.rb,
lib/aranha/parsers/ofx/data/investment_account.rb,
lib/aranha/parsers/ofx/data/monetary_class_support.rb

Overview

This class is returned when a parse is successful.

General Notes

  • currency symbols are an iso4217 3-letter code

  • language is defined by iso639 3-letter code

Defined Under Namespace

Modules: MonetaryClassSupport, MonetarySupport Classes: Account, AccountInfo, BankAccount, CreditAccount, Institute, InvestmentAccount, Position, SignOn, Statement, Status, Transaction

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bank_accountObject

Returns the value of attribute bank_account.



11
12
13
# File 'lib/aranha/parsers/ofx/data.rb', line 11

def 
  @bank_account
end

#credit_cardObject

Returns the value of attribute credit_card.



11
12
13
# File 'lib/aranha/parsers/ofx/data.rb', line 11

def credit_card
  @credit_card
end

#headerObject

Returns the value of attribute header.



11
12
13
# File 'lib/aranha/parsers/ofx/data.rb', line 11

def header
  @header
end

#investmentObject

Returns the value of attribute investment.



11
12
13
# File 'lib/aranha/parsers/ofx/data.rb', line 11

def investment
  @investment
end

#sign_onObject

Returns the value of attribute sign_on.



11
12
13
# File 'lib/aranha/parsers/ofx/data.rb', line 11

def sign_on
  @sign_on
end

#signup_account_infoObject

Returns the value of attribute signup_account_info.



11
12
13
# File 'lib/aranha/parsers/ofx/data.rb', line 11

def 
  @signup_account_info
end

Instance Method Details

#accountsObject



14
15
16
17
18
19
20
21
# File 'lib/aranha/parsers/ofx/data.rb', line 14

def accounts
  accounts = []
  %i[bank_account credit_card investment].each do |method|
    val = send(method)
    accounts << val if val
  end
  accounts
end