lib/almanack/event_source/ical_feed.rb in almanack-1.0.5 vs lib/almanack/event_source/ical_feed.rb in almanack-1.1.0.beta1

- old
+ new

@@ -10,10 +10,14 @@ occurrences_between(date_range).map do |occurrence| event_from(occurrence) end end + def serialized_between(date_range) + { events: events_between(date_range).map(&:serialized) } + end + private def each_ical_event(&block) entities.each do |entity| entity.events.each(&block) if entity.respond_to?(:events) @@ -36,11 +40,11 @@ end def event_from(occurrence) Event.new( title: occurrence.summary, - start_date: occurrence.dtstart, - end_date: occurrence.dtend, + start_time: occurrence.dtstart, + end_time: occurrence.dtend, description: occurrence.description, location: occurrence.location ) end