Class/Module Index [+]

Quicksearch

Twitter::Default

Public Class Methods

bearer_token() click to toggle source

@return [String]

# File lib/twitter/default.rb, line 70
def bearer_token
  ENV['TWITTER_BEARER_TOKEN']
end
connection_options() click to toggle source
# File lib/twitter/default.rb, line 84
def connection_options
  CONNECTION_OPTIONS
end
consumer_key() click to toggle source

@return [String]

# File lib/twitter/default.rb, line 50
def consumer_key
  ENV['TWITTER_CONSUMER_KEY']
end
consumer_secret() click to toggle source

@return [String]

# File lib/twitter/default.rb, line 55
def consumer_secret
  ENV['TWITTER_CONSUMER_SECRET']
end
endpoint() click to toggle source

@note This is configurable in case you want to use a Twitter-compatible endpoint. @see status.net/wiki/Twitter-compatible_API @see en.blog.wordpress.com/2009/12/12/twitter-api/ @see staff.tumblr.com/post/287703110/api @see developer.typepad.com/typepad-twitter-api/twitter-api.html @return [String]

# File lib/twitter/default.rb, line 80
def endpoint
  ENDPOINT
end
identity_map() click to toggle source
# File lib/twitter/default.rb, line 88
def identity_map
  IDENTITY_MAP
end
middleware() click to toggle source

@note Faraday's middleware stack implementation is comparable to that of Rack middleware. The order of middleware is important: the first middleware on the list wraps all others, while the last middleware is the innermost one. @see github.com/technoweenie/faraday#advanced-middleware-usage @see mislav.uniqpath.com/2011/07/faraday-advanced-http/ @return [Faraday::Builder]

# File lib/twitter/default.rb, line 96
def middleware
  MIDDLEWARE
end
oauth_token() click to toggle source

@return [String]

# File lib/twitter/default.rb, line 60
def oauth_token
  ENV['TWITTER_OAUTH_TOKEN']
end
oauth_token_secret() click to toggle source

@return [String]

# File lib/twitter/default.rb, line 65
def oauth_token_secret
  ENV['TWITTER_OAUTH_TOKEN_SECRET']
end
options() click to toggle source

@return [Hash]

# File lib/twitter/default.rb, line 45
def options
  Hash[Twitter::Configurable.keys.map{|key| [key, send(key)]}]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.