Class: Calagator::Source::Parser::Ical::EventMapper
- Inherits:
-
Struct
- Object
- Struct
- Calagator::Source::Parser::Ical::EventMapper
- Defined in:
- app/models/calagator/source/parser/ical.rb
Overview
Converts a VEvent instance into an Event
Instance Method Summary collapse
Instance Method Details
#to_event ⇒ Object
60 61 62 63 64 65 66 67 68 |
# File 'app/models/calagator/source/parser/ical.rb', line 60 def to_event Event.new( title: vevent.summary, description: vevent.description, url: vevent.url, start_time: vevent.start_time, end_time: vevent.end_time ) end |