Class: SaltParser::Ofx::Account
Instance Attribute Summary collapse
-
#available_balance ⇒ Object
Returns the value of attribute available_balance.
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#bank_id ⇒ Object
Returns the value of attribute bank_id.
-
#broker_id ⇒ Object
Returns the value of attribute broker_id.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#transactions ⇒ Object
Returns the value of attribute transactions.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit_price ⇒ Object
Returns the value of attribute unit_price.
-
#units ⇒ Object
Returns the value of attribute units.
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from SaltParser::Base
Instance Attribute Details
#available_balance ⇒ Object
Returns the value of attribute available_balance.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def available_balance @available_balance end |
#balance ⇒ Object
Returns the value of attribute balance.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def balance @balance end |
#bank_id ⇒ Object
Returns the value of attribute bank_id.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def bank_id @bank_id end |
#broker_id ⇒ Object
Returns the value of attribute broker_id.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def broker_id @broker_id end |
#currency ⇒ Object
Returns the value of attribute currency.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def currency @currency end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def name @name end |
#transactions ⇒ Object
Returns the value of attribute transactions.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def transactions @transactions end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def type @type end |
#unit_price ⇒ Object
Returns the value of attribute unit_price.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def unit_price @unit_price end |
#units ⇒ Object
Returns the value of attribute units.
4 5 6 |
# File 'lib/ofx/account.rb', line 4 def units @units end |
Instance Method Details
#identifier ⇒ Object
7 8 9 |
# File 'lib/ofx/account.rb', line 7 def identifier id end |
#to_hash ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/ofx/account.rb', line 11 def to_hash { :balance => balance ? balance.to_hash : nil, :bank_id => bank_id, :broker_id => broker_id, :currency => currency, :id => id, :name => name, :transactions => transactions.map(&:to_hash), :type => type, :units => units, :unit_price => unit_price, :available_balance => available_balance ? available_balance.to_hash : nil } end |