Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/active_date_range/core_ext/integer.rb

Instance Method Summary collapse

Instance Method Details

#quartersObject Also known as: quarter

Returns Duration instance matching the number of quarters provided

2.quarters # => 6 months


7
8
9
# File 'lib/active_date_range/core_ext/integer.rb', line 7

def quarters
  self * 3.months
end