Module: Twitter::Default

### Home Classes Methods

### In Files

- lib/twitter/default.rb

### Methods

- ::connection_options
- ::consumer_key
- ::consumer_secret
- ::endpoint
- ::identity_map
- ::middleware
- ::oauth_token
- ::oauth_token_secret
- ::options

### Class/Module Index

Quicksearch

- Twitter
- Twitter::API
- Twitter::API::Arguments
- Twitter::API::DirectMessages
- Twitter::API::Favorites
- Twitter::API::FriendsAndFollowers
- Twitter::API::Help
- Twitter::API::Lists
- Twitter::API::PlacesAndGeo
- Twitter::API::SavedSearches
- Twitter::API::Search
- Twitter::API::SpamReporting
- Twitter::API::SuggestedUsers
- Twitter::API::Timelines
- Twitter::API::Trends
- Twitter::API::Tweets
- Twitter::API::Undocumented
- Twitter::API::Users
- Twitter::API::Utils
- Twitter::Action
- Twitter::Action::Favorite
- Twitter::Action::Follow
- Twitter::Action::ListMemberAdded
- Twitter::Action::Mention
- Twitter::Action::Reply
- Twitter::Action::Retweet
- Twitter::Action::Status
- Twitter::Action::Tweet
- Twitter::ActionFactory
- Twitter::Base
- Twitter::BasicUser
- Twitter::Client
- Twitter::Configurable
- Twitter::Configuration
- Twitter::Creatable
- Twitter::Cursor
- Twitter::Default
- Twitter::DirectMessage
- Twitter::Entity
- Twitter::Entity::Hashtag
- Twitter::Entity::Url
- Twitter::Entity::UserMention
- Twitter::Error
- Twitter::Error::AlreadyFavorited
- Twitter::Error::AlreadyRetweeted
- Twitter::Error::BadGateway
- Twitter::Error::BadRequest
- Twitter::Error::ClientError
- Twitter::Error::ConfigurationError
- Twitter::Error::DecodeError
- Twitter::Error::EnhanceYourCalm
- Twitter::Error::Forbidden
- Twitter::Error::GatewayTimeout
- Twitter::Error::IdentityMapKeyError
- Twitter::Error::InternalServerError
- Twitter::Error::NotAcceptable
- Twitter::Error::NotFound
- Twitter::Error::RateLimited
- Twitter::Error::ServerError
- Twitter::Error::ServiceUnavailable
- Twitter::Error::TooManyRequests
- Twitter::Error::Unauthorized
- Twitter::Error::UnprocessableEntity
- Twitter::Exceptable
- Twitter::Factory
- Twitter::Geo
- Twitter::Geo::Point
- Twitter::Geo::Polygon
- Twitter::GeoFactory
- Twitter::Identity
- Twitter::IdentityMap
- Twitter::Language
- Twitter::List
- Twitter::Media
- Twitter::Media::Photo
- Twitter::MediaFactory
- Twitter::Metadata
- Twitter::OEmbed
- Twitter::Place
- Twitter::ProfileBanner
- Twitter::RateLimit
- Twitter::Relationship
- Twitter::Request
- Twitter::Request::MultipartWithFile
- Twitter::Response
- Twitter::Response::ParseJson
- Twitter::Response::RaiseError
- Twitter::SavedSearch
- Twitter::SearchResults
- Twitter::Settings
- Twitter::Size
- Twitter::SourceUser
- Twitter::Status
- Twitter::Suggestion
- Twitter::TargetUser
- Twitter::Trend
- Twitter::Tweet
- Twitter::User
- Twitter::Version
- Enumerable
- Kernel

No matching classes.

# Twitter::Default

### Constants

CONNECTION_OPTIONS
ENDPOINT
IDENTITY_MAP
MIDDLEWARE

### Public Class Methods

connection_options() click to toggle source

    # File lib/twitter/default.rb, line 82
    def connection_options
      CONNECTION_OPTIONS
    end

consumer_key() click to toggle source

@return [String]

    # File lib/twitter/default.rb, line 53
    def consumer_key
      ENV['TWITTER_CONSUMER_KEY']
    end

consumer_secret() click to toggle source

@return [String]

    # File lib/twitter/default.rb, line 58
    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 78
    def endpoint
      ENDPOINT
    end

identity_map() click to toggle source

    # File lib/twitter/default.rb, line 86
    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 94
    def middleware
      MIDDLEWARE
    end

oauth_token() click to toggle source

@return [String]

    # File lib/twitter/default.rb, line 63
    def oauth_token
      ENV['TWITTER_OAUTH_TOKEN']
    end

oauth_token_secret() click to toggle source

@return [String]

    # File lib/twitter/default.rb, line 68
    def oauth_token_secret
      ENV['TWITTER_OAUTH_TOKEN_SECRET']
    end

options() click to toggle source

@return [Hash]

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.