Class: OFX::Data::Banking::Balance
- Inherits:
-
Object
- Object
- OFX::Data::Banking::Balance
- Defined in:
- lib/ofx/data/banking/balance.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#date ⇒ Object
readonly
Returns the value of attribute date.
Instance Method Summary collapse
-
#initialize(opts) ⇒ Balance
constructor
A new instance of Balance.
- #ofx_type ⇒ Object
Constructor Details
#initialize(opts) ⇒ Balance
Returns a new instance of Balance.
10 11 12 13 |
# File 'lib/ofx/data/banking/balance.rb', line 10 def initialize(opts) @amount = BigDecimal.new(opts.fetch(:amount)) @date = opts.fetch(:date) end |
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount.
8 9 10 |
# File 'lib/ofx/data/banking/balance.rb', line 8 def amount @amount end |
#date ⇒ Object (readonly)
Returns the value of attribute date.
8 9 10 |
# File 'lib/ofx/data/banking/balance.rb', line 8 def date @date end |
Instance Method Details
#ofx_type ⇒ Object
15 16 17 |
# File 'lib/ofx/data/banking/balance.rb', line 15 def ofx_type :"banking.balance" end |