module Wunderground::Configuration

Constants

DEFAULT_API_KEY
DEFAULT_DOMAIN
DEFAULT_FORMAT
DEFAULT_METHOD
DEFAULT_USER_AGENT
VALID_CONFIG_KEYS
VALID_CONNECTION_KEYS
VALID_OPTIONS_KEYS

Public Class Methods

extended(base) click to toggle source

Make sure we have the default values set when we get 'extended'

# File lib/wunderground/configuration.rb, line 18
def self.extended(base)
  base.reset
end

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/wunderground/configuration.rb, line 22
def configure
  yield self
end
reset() click to toggle source
# File lib/wunderground/configuration.rb, line 26
def reset
  self.domain     = DEFAULT_DOMAIN
  self.method     = DEFAULT_METHOD
  self.user_agent = DEFAULT_USER_AGENT

  self.api_key    = DEFAULT_API_KEY
  self.format     = DEFAULT_FORMAT
end