lib/sched/client.rb in sched-0.1.2 vs lib/sched/client.rb in sched-0.1.3
- old
+ new
@@ -18,9 +18,10 @@
results = FasterCSV.parse(request('session/list', nil, :get))
attributes = results.shift.map{|a| a.strip.to_sym}
@events = results.map do |row|
row_hash = {}
attributes.each_with_index do |a, i|
+ a = a.to_s.gsub(/^event_/, "session_").to_sym
row_hash[a] = row[i]
end
event = Sched::Event.new(row_hash[:session_key], self).configure(row_hash)
end
end