Class: SimpleRange
- Inherits:
-
Object
- Object
- SimpleRange
- Includes:
- DateRange
- Defined in:
- lib/funtimes/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
-
#initialize(date1, date2) ⇒ SimpleRange
constructor
A new instance of SimpleRange.
Methods included from DateRange
#&, #days, #encompasses, #intersects, #months, #number_of_days_in, #quarters, #same_range_as, #weeks, #|
Constructor Details
#initialize(date1, date2) ⇒ SimpleRange
Returns a new instance of SimpleRange.
85 86 87 |
# File 'lib/funtimes/date_range.rb', line 85 def initialize(date1, date2) @start_date, @end_date = date1, date2 end |
Instance Attribute Details
#end_date ⇒ Object
Returns the value of attribute end_date.
83 84 85 |
# File 'lib/funtimes/date_range.rb', line 83 def end_date @end_date end |
#start_date ⇒ Object
Returns the value of attribute start_date.
83 84 85 |
# File 'lib/funtimes/date_range.rb', line 83 def start_date @start_date end |