lib/ragoon/services/schedule.rb in ragoon-0.4.1 vs lib/ragoon/services/schedule.rb in ragoon-0.4.2
- old
+ new
@@ -18,10 +18,11 @@
events = client.result_set.xpath('//schedule_event').
find_all { |ev| ev[:event_type] != 'banner' }.map do |event|
period = start_and_end(event)
{
- url: event_url(event[:id]),
+ id: event[:id],
+ url: event_url(event[:id]),
title: event[:detail],
start_at: period[:start_at],
end_at: period[:end_at],
plan: event[:plan],
facilities: facility_names(event),