Method: Finance::Rate#duration

Defined in:
lib/finance/rates.rb

#durationInteger

Returns the duration for which the rate is valid, in months.

Returns:

  • (Integer)

    the duration for which the rate is valid, in months



19
20
21
# File 'lib/finance/rates.rb', line 19

def duration
  @duration
end