Module Twitter::Config
In: lib/twitter/config.rb

Defines constants and methods related to configuration

Methods

configure   extended   options   reset  

Constants

DEFAULT_ADAPTER = :net_http   The HTTP connection adapter that will be used to connect if none is set
DEFAULT_CONNECTION_OPTIONS = {}   The Faraday connection options if none is set
DEFAULT_CONSUMER_KEY = nil   The consumer key if none is set
DEFAULT_CONSUMER_SECRET = nil   The consumer secret if none is set
DEFAULT_ENDPOINT = 'https://api.twitter.com'   The endpoint that will be used to connect if none is set

@note This is configurable in case you want to use HTTP instead of HTTPS, specify a different API version, or 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

DEFAULT_GATEWAY = nil   The gateway server if none is set
DEFAULT_MEDIA_ENDPOINT = 'https://upload.twitter.com'   This endpoint will be used by default when updating statuses with media
DEFAULT_OAUTH_TOKEN = nil   The oauth token if none is set
DEFAULT_OAUTH_TOKEN_SECRET = nil   The oauth token secret if none is set
DEFAULT_PROXY = nil   The proxy server if none is set
DEFAULT_SEARCH_ENDPOINT = 'https://search.twitter.com'   The search endpoint that will be used to connect if none is set

@note This is configurable in case you want to use HTTP instead of HTTPS or use a Twitter-compatible endpoint. @see status.net/wiki/Twitter-compatible_API

DEFAULT_USER_AGENT = "Twitter Ruby Gem #{Twitter::Version}"   The value sent in the ‘User-Agent’ header if none is set
VALID_OPTIONS_KEYS = [ :adapter, :connection_options, :consumer_key, :consumer_secret, :endpoint, :gateway, :oauth_token, :oauth_token_secret, :proxy, :search_endpoint, :user_agent, :media_endpoint   An array of valid keys in the options hash when configuring a {Twitter::Client}

Public Class methods

When this module is extended, set all configuration options to their default values

Public Instance methods

Convenience method to allow configuration options to be set in a block

Create a hash of options and their values

Reset all configuration options to defaults

[Validate]