Class: OfxParser::Ofx

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx.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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bank_accountObject

Returns the value of attribute bank_account.



51
52
53
# File 'lib/ofx.rb', line 51

def 
  @bank_account
end

#credit_cardObject

Returns the value of attribute credit_card.



51
52
53
# File 'lib/ofx.rb', line 51

def credit_card
  @credit_card
end

#headerObject

Returns the value of attribute header.



51
52
53
# File 'lib/ofx.rb', line 51

def header
  @header
end

#investmentObject

Returns the value of attribute investment.



51
52
53
# File 'lib/ofx.rb', line 51

def investment
  @investment
end

#sign_onObject

Returns the value of attribute sign_on.



51
52
53
# File 'lib/ofx.rb', line 51

def sign_on
  @sign_on
end

#signup_account_infoObject

Returns the value of attribute signup_account_info.



51
52
53
# File 'lib/ofx.rb', line 51

def 
  @signup_account_info
end

Instance Method Details

#accountsObject



54
55
56
57
58
59
60
61
# File 'lib/ofx.rb', line 54

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