Class: OFX::Data::Banking::Balance

Inherits:
Object
  • Object
show all
Defined in:
lib/ofx/data/banking/balance.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#amountObject (readonly)

Returns the value of attribute amount.



8
9
10
# File 'lib/ofx/data/banking/balance.rb', line 8

def amount
  @amount
end

#dateObject (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_typeObject



15
16
17
# File 'lib/ofx/data/banking/balance.rb', line 15

def ofx_type
  :"banking.balance"
end