Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'stream'
- s = Stream.new(:username => 'me', :password => 'pass')
- s.filter(:track => "Twitter") do |o|
- # do something with o, a status element
- puts o.user.screen_name
- puts o.text
- end
Add Comment
Please, Sign In to add comment