module Tweetsentiments::Configuration
Constants
- DEFAULT_ADAPTER
- DEFAULT_ENDPOINT
- DEFAULT_FORMAT
- DEFAULT_PROXY
- DEFAULT_USER_AGENT
- VALID_FORMATS
- VALID_OPTIONS_KEYS
Public Class Methods
extended(base)
click to toggle source
# File lib/tweetsentiments/configuration.rb, line 15 def self.extended(base) base.reset end
Public Instance Methods
configure() { |self| ... }
click to toggle source
# File lib/tweetsentiments/configuration.rb, line 19 def configure yield self end
options()
click to toggle source
# File lib/tweetsentiments/configuration.rb, line 23 def options VALID_OPTIONS_KEYS.inject({}) do |option, key| option.merge!(key => send(key)) end end
reset()
click to toggle source
# File lib/tweetsentiments/configuration.rb, line 29 def reset self.endpoint = DEFAULT_ENDPOINT self.format = DEFAULT_FORMAT self.user_agent = DEFAULT_USER_AGENT self.proxy = DEFAULT_PROXY self.adapter = DEFAULT_ADAPTER end