lib/tw/client/stream.rb in tw-0.2.4 vs lib/tw/client/stream.rb in tw-0.2.5
- old
+ new
@@ -32,15 +32,13 @@
end
private
def tweet?(chunk)
return false unless chunk.user and chunk.user.screen_name and chunk.text and chunk.created_at and chunk.id
- {
- :id => chunk.id,
- :user => chunk.user.screen_name,
- :text => chunk.text,
- :time => (Time.parse chunk.created_at)
- }
+ Tw::Tweet.new(:id => chunk.id,
+ :user => chunk.user.screen_name,
+ :text => chunk.text,
+ :time => (Time.parse chunk.created_at))
end
end
end