lib/ragoon/services/schedule.rb in ragoon-0.1.1 vs lib/ragoon/services/schedule.rb in ragoon-0.1.2

- old
+ new

@@ -17,10 +17,10 @@ events = client.result_set.xpath('//schedule_event').find_all { |ev| ev[:event_type] == 'normal' }.map do |event| public_event = event[:public_type] == 'public' { title: public_event ? event[:detail] : '予定あり', period: start_and_end(event), - facility: public_event ? facility_names(event) : '', + facility: public_event ? facility_names(event) : [], } end end def facility_names(event)