Class: Noventius::PostProcessors::DateRanges::BaseRange
- Inherits:
-
Object
- Object
- Noventius::PostProcessors::DateRanges::BaseRange
- Includes:
- Comparable
- Defined in:
- lib/noventius/post_processors/date_ranges.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(date) ⇒ BaseRange
constructor
A new instance of BaseRange.
- #succ ⇒ Object
Constructor Details
#initialize(date) ⇒ BaseRange
Returns a new instance of BaseRange.
99 100 101 |
# File 'lib/noventius/post_processors/date_ranges.rb', line 99 def initialize(date) @date = date end |
Instance Attribute Details
#date ⇒ Object (readonly)
Returns the value of attribute date.
97 98 99 |
# File 'lib/noventius/post_processors/date_ranges.rb', line 97 def date @date end |
Instance Method Details
#<=>(other) ⇒ Object
107 108 109 |
# File 'lib/noventius/post_processors/date_ranges.rb', line 107 def <=>(other) @date <=> other.date end |
#succ ⇒ Object
103 104 105 |
# File 'lib/noventius/post_processors/date_ranges.rb', line 103 def succ self.class.new(@date + @step) end |