Class: Centra::DateRange
- Inherits:
-
Struct
- Object
- Struct
- Centra::DateRange
- Defined in:
- lib/centra/date_range.rb,
lib/centra/date_range.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
Instance Method Summary collapse
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date
2 3 4 |
# File 'lib/centra/date_range.rb', line 2 def end_date @end_date end |
#start_date ⇒ Object
Returns the value of attribute start_date
2 3 4 |
# File 'lib/centra/date_range.rb', line 2 def start_date @start_date end |
Instance Method Details
#cover?(timestamp) ⇒ Boolean
5 6 7 8 9 10 |
# File 'lib/centra/date_range.rb', line 5 def cover?() return false if start_date && < start_date return false if end_date && > end_date true end |