Class: OFX::Balance
- Inherits:
-
Object
- Object
- OFX::Balance
- Defined in:
- lib/ofx/statements.rb,
lib/ofx/1.0.2/statements.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#as_of ⇒ Object
Returns the value of attribute as_of.
Class Method Summary collapse
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
20 21 22 |
# File 'lib/ofx/statements.rb', line 20 def amount @amount end |
#as_of ⇒ Object
Returns the value of attribute as_of.
21 22 23 |
# File 'lib/ofx/statements.rb', line 21 def as_of @as_of end |
Class Method Details
.from_ofx_102_hash(balance_hash) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/ofx/1.0.2/statements.rb', line 20 def self.from_ofx_102_hash(balance_hash) balance = Balance.new balance.amount = balance_hash['BALAMT'] balance.as_of = balance_hash['DTASOF'].to_datetime balance end |