Class: LongDurationRange

Inherits:
DurationRange show all
Defined in:
lib/timespan/core_ext/range.rb

Instance Attribute Summary

Attributes inherited from DurationRange

#range, #unit

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DurationRange

#__evolve_to_duration_range__, allowed_unit?, #allowed_unit?, #between?, demongoize, evolve, #initialize, #mongoize, mongoize, #to_s, #to_str

Constructor Details

This class inherits a constructor from DurationRange

Class Method Details

.allowed_unitsObject



149
150
151
# File 'lib/timespan/core_ext/range.rb', line 149

def self.allowed_units
  [:days, :weeks, :months, :years]
end

Instance Method Details

#allowed_unitsObject



153
154
155
# File 'lib/timespan/core_ext/range.rb', line 153

def allowed_units
  LongDurationRange.allowed_units
end