Sha256: 20b8ed3f4de071c43ae0805dc60f7f7c5e6483aee5530994edab22d39351ca22

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

module StreamBot
  # wrapper class for dealing with twitters native retweet api
  class Retweet
    # intitialize method aka constructor
    def initialize(params)
      @handler = StreamBot::OAuth.new(params['oauth'])
    end

    # retweets the status with given id
    def retweet(id)
      @handler.post("/statuses/retweet/#{id}.json",nil)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
streambot-0.5.4 lib/streambot/retweet.rb