Class: LongDurationRange
Instance Attribute Summary
#range, #unit
Class Method Summary
collapse
Instance Method Summary
collapse
#<=>, allowed_unit?, #allowed_unit?, #between?, demongoize, evolve, #initialize, #mongoize, mongoize, #time, #to_hash, #to_s, #to_str
Constructor Details
This class inherits a constructor from DurationRange
Class Method Details
.allowed_units ⇒ Object
191
192
193
|
# File 'lib/timespan/core_ext/range.rb', line 191
def self.allowed_units
[:days, :weeks, :months, :years]
end
|
Instance Method Details
187
188
189
|
# File 'lib/timespan/core_ext/range.rb', line 187
def length
:long
end
|