Module TweetStream::Configuration
In: lib/tweetstream/configuration.rb

Defines constants and methods related to configuration

Methods

configure   extended   options   reset  

Constants

VALID_OPTIONS_KEYS = [ :parser, :username, :password, :user_agent, :auth_method, :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret].freeze   An array of valid keys in the options hash when configuring TweetStream.
DEFAULT_PARSER = MultiJson.default_engine   The parser that will be used to connect if none is set
DEFAULT_USERNAME = nil   By default, don‘t set a username
DEFAULT_PASSWORD = nil   By default, don‘t set a password
DEFAULT_USER_AGENT = "TweetStream Ruby Gem #{TweetStream::VERSION}".freeze   The user agent that will be sent to the API endpoint if none is set
DEFAULT_AUTH_METHOD = :oauth   The default authentication method
VALID_FORMATS = [ :basic, :oauth].freeze
DEFAULT_CONSUMER_KEY = nil   By default, don‘t set an application key
DEFAULT_CONSUMER_SECRET = nil   By default, don‘t set an application secret
DEFAULT_OAUTH_TOKEN = nil   By default, don‘t set a user oauth token
DEFAULT_OAUTH_TOKEN_SECRET = nil   By default, don‘t set a user oauth secret
DEFAULT_TIMER_INTERVAL = 30   Default time interval for use with on_interval

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]