Class: VacationRentalsIcalAdapters::Event
- Inherits:
-
Object
- Object
- VacationRentalsIcalAdapters::Event
- Defined in:
- lib/vacation_rentals_ical_adapters/event.rb
Instance Attribute Summary collapse
-
#end_date ⇒ Object
readonly
Returns the value of attribute end_date.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(start_date:, end_date:) ⇒ Event
constructor
A new instance of Event.
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_date ⇒ Object (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_date ⇒ Object (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 |