Class: Atig::Channel::Retweet
- Defined in:
- lib/atig/channel/retweet.rb
Instance Method Summary collapse
- #channel_name ⇒ Object
-
#initialize(context, gateway, db) ⇒ Retweet
constructor
A new instance of Retweet.
- #message(entry) ⇒ Object
Constructor Details
#initialize(context, gateway, db) ⇒ Retweet
Returns a new instance of Retweet.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/atig/channel/retweet.rb', line 7 def initialize(context, gateway, db) super db.statuses.find_all(:limit=>50).reverse_each {|entry| entry } db.statuses.listen {|entry| entry } end |
Instance Method Details
#channel_name ⇒ Object
19 |
# File 'lib/atig/channel/retweet.rb', line 19 def channel_name; "#retweet" end |
#message(entry) ⇒ Object
21 22 23 24 25 |
# File 'lib/atig/channel/retweet.rb', line 21 def (entry) if entry.status.retweeted_status then @channel. entry end end |