3
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/synchrograph/filters/base.rb', line 3
def self.call(ical_event, representation)
{
'summary' => ical_event.summary,
'start' => ical_event.dtstart.google_calendar_representation,
'end' => ical_event.dtend.google_calendar_representation,
'location' => ical_event.location,
'description' => ical_event.description,
'id' => ical_event.google_calendar_id,
'status' => 'confirmed',
'recurrence' => ical_event.rrule.map {|r| "RRULE:#{r.value_ical}"} + ical_event.rdates + ical_event.exdates
}.delete_if {|k,v| v.nil? }
end
|