Class: SimpleRange

Inherits:
Object
  • Object
show all
Includes:
DateRange
Defined in:
lib/funtimes/date_range.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dateObject

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_dateObject

Returns the value of attribute start_date.



83
84
85
# File 'lib/funtimes/date_range.rb', line 83

def start_date
  @start_date
end