Class: VacationRentalsIcalAdapters::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/vacation_rentals_ical_adapters/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(start_date:, end_date:) ⇒ Event

Returns a new instance of Event.



4
5
6
7
# File 'lib/vacation_rentals_ical_adapters/event.rb', line 4

def initialize(start_date:, end_date:)
  @start_date = Date.parse(start_date)
  @end_date = Date.parse(end_date)
end

Instance Attribute Details

#end_dateObject (readonly)

Returns the value of attribute end_date.



2
3
4
# File 'lib/vacation_rentals_ical_adapters/event.rb', line 2

def end_date
  @end_date
end

#start_dateObject (readonly)

Returns the value of attribute start_date.



2
3
4
# File 'lib/vacation_rentals_ical_adapters/event.rb', line 2

def start_date
  @start_date
end