lib/totter/client/timelines.rb in totter-0.3.4 vs lib/totter/client/timelines.rb in totter-0.3.5
- old
+ new
@@ -119,10 +119,16 @@
end
private
def format_timeline_result(http_result)
- Hashie::Mash.new(:items => http_result.body, :pusher_channel => http_result.headers['x-pusher-channel'])
+ hash = {:items => http_result.body, :pusher_channel => http_result.headers['x-pusher-channel']}
+ case @result_format
+ when :mashie
+ Hashie::Mash.new(hash)
+ else
+ hash
+ end
end
end
end
end