README.md in pupil-0.1.2 vs README.md in pupil-0.1.3
- old
+ new
@@ -69,12 +69,12 @@
stream = Pupil::Stream.new pupil_key
# Userstream
stream.start :userstream do |status|
- puts status.type #=> Show type of status
- if status.type == :retweeted
- puts "#{status.content['user']['screen_name']: #{status.content['text']}"
+ puts status.event #=> Show type of status
+ if status.event == :retweeted
+ puts "#{status.user.screen_name} : #{status.text}"
end
end
# Search stream
stream.start :filter, :track => "#MerryChristmas" do |status|