Module: OpenWeather::Config
Constant Summary collapse
- ATTRIBUTES =
%i[ endpoint pro_endpoint api_key proxy user_agent ca_path ca_file logger timeout open_timeout lang units ].freeze
Instance Method Summary collapse
Instance Method Details
#reset ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/open_weather/config.rb', line 24 def reset self.endpoint = 'https://api.openweathermap.org/data' self.pro_endpoint = 'https://pro.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 |