Sha256: 5ffc2579101312469ce26a848dcdc34ccd329bfdc04bdff78fc6fe625ced3dc4

Contents?: true

Size: 415 Bytes

Versions: 7

Compression:

Stored size: 415 Bytes

Contents

module Chatterbot
  module Followers
    
    #
    # return a collection of the users followers
    # @todo we should cache this locally
    #
    def followers(opts={})
      return unless require_login
      client.followers(opts).to_a
    end

    #
    # follow a user
    #
    # @param u a Twitter::User or user id
    def follow(u)
      return unless require_login
      client.follow(u)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
chatterbot-1.0.2 lib/chatterbot/followers.rb
chatterbot-1.0.1 lib/chatterbot/followers.rb
chatterbot-1.0.0 lib/chatterbot/followers.rb
chatterbot-0.9.3 lib/chatterbot/followers.rb
chatterbot-0.9.2 lib/chatterbot/followers.rb
chatterbot-0.9.1 lib/chatterbot/followers.rb
chatterbot-0.9.0 lib/chatterbot/followers.rb