Class: OfxParser::Ofx
- Inherits:
-
Object
- Object
- OfxParser::Ofx
- Defined in:
- lib/ofx_parser/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
-
#bank_account ⇒ Object
Returns the value of attribute bank_account.
-
#credit_card ⇒ Object
Returns the value of attribute credit_card.
-
#header ⇒ Object
Returns the value of attribute header.
-
#investment ⇒ Object
Returns the value of attribute investment.
-
#sign_on ⇒ Object
Returns the value of attribute sign_on.
-
#signup_account_info ⇒ Object
Returns the value of attribute signup_account_info.
Instance Method Summary collapse
Instance Attribute Details
#bank_account ⇒ Object
Returns the value of attribute bank_account.
7 8 9 |
# File 'lib/ofx_parser/ofx.rb', line 7 def bank_account @bank_account end |
#credit_card ⇒ Object
Returns the value of attribute credit_card.
7 8 9 |
# File 'lib/ofx_parser/ofx.rb', line 7 def credit_card @credit_card end |
#header ⇒ Object
Returns the value of attribute header.
7 8 9 |
# File 'lib/ofx_parser/ofx.rb', line 7 def header @header end |
#investment ⇒ Object
Returns the value of attribute investment.
7 8 9 |
# File 'lib/ofx_parser/ofx.rb', line 7 def investment @investment end |
#sign_on ⇒ Object
Returns the value of attribute sign_on.
7 8 9 |
# File 'lib/ofx_parser/ofx.rb', line 7 def sign_on @sign_on end |
#signup_account_info ⇒ Object
Returns the value of attribute signup_account_info.
7 8 9 |
# File 'lib/ofx_parser/ofx.rb', line 7 def signup_account_info @signup_account_info end |
Instance Method Details
#accounts ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/ofx_parser/ofx.rb', line 10 def accounts accounts = [] [:bank_account, :credit_card, :investment].each do |method| val = send(method) accounts << val if val end accounts end |