Sha256: a587f20c1c74265248f649bba3ab6911ffa1690c8baebd6c35a2a6a1ff84ed69

Contents?: true

Size: 402 Bytes

Versions: 2

Compression:

Stored size: 402 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)
      LOG.info "retweet status ##{id}"
      @handler.post("/statuses/retweet/#{id}.json", nil)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
streambot-1.0.0 lib/streambot/retweet.rb
streambot-1.0.0.rc4 lib/streambot/retweet.rb