Method: Birdy::Base#poll
- Defined in:
- lib/birdy/base.rb
#poll ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/birdy/base.rb', line 16 def poll @alert = LinuxNotifier.new while true tweets.reverse.each do |tweet| image_path = download(tweet.user.profile_image_url) @alert.show(image_path, tweet.user.name, tweet.text) end sleep 60 end end |