Module: OpenWeather::Config

Extended by:
Config
Included in:
Config
Defined in:
lib/open_weather/config.rb

Constant Summary collapse

ATTRIBUTES =
%i[
  endpoint
  api_key
  proxy
  user_agent
  ca_path
  ca_file
  logger
  timeout
  open_timeout
  lang
  units
].freeze

Instance Method Summary collapse

Instance Method Details

#resetObject



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/open_weather/config.rb', line 23

def reset
  self.endpoint = 'https://api.openweathermap.org/data'
  self.api_key = nil
  self.user_agent = "OpenWeather Ruby Client/#{OpenWeather::VERSION}"
  self.ca_path = nil
  self.ca_file = nil
  self.proxy = nil
  self.logger = nil
  self.timeout = nil
  self.open_timeout = nil
  self.lang = nil
  self.units = nil
end