Class: StreamBot::Retweet
- Inherits:
-
Object
- Object
- StreamBot::Retweet
- Defined in:
- lib/streambot/retweet.rb
Overview
wrapper class for dealing with twitters native retweet api
Instance Method Summary collapse
-
#initialize(params) ⇒ Retweet
constructor
intitialize method aka constructor.
-
#retweet(id) ⇒ Object
retweets the status with given id.
Constructor Details
Instance Method Details
#retweet(id) ⇒ Object
retweets the status with given id
10 11 12 13 14 15 16 17 |
# File 'lib/streambot/retweet.rb', line 10 def retweet(id) # one thread per retweet, # cause it's much, much faster Thread.new do LOG.info "retweet status ##{id}" @handler.post("/statuses/retweet/#{id}.json", nil) end end |