Class: OpenWeather::Client
- Inherits:
-
Object
- Object
- OpenWeather::Client
- Includes:
- Connection, Endpoints::Current, Endpoints::OneCall, Request
- Defined in:
- lib/open_weather/client.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Endpoints::OneCall
Methods included from Endpoints::Current
#current_cities_geo_box, #current_cities_geo_circle, #current_cities_id, #current_city, #current_city_id, #current_geo, #current_weather, #current_zip
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 |
# File 'lib/open_weather/client.rb', line 12 def initialize( = {}) OpenWeather::Config::ATTRIBUTES.each do |key| send("#{key}=", [key] || OpenWeather.config.send(key)) end @logger ||= OpenWeather::Logger.logger end |