Class: OpenWeather::Client
- Inherits:
-
Object
- Object
- OpenWeather::Client
- Includes:
- Connection, Endpoints::Current, Endpoints::Hourly, Endpoints::OneCall, Endpoints::Stations, Endpoints::ThirtyDayForecast, 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::Stations
#create_measurements, #delete_station, #get_measurements, #get_station, #list_stations, #register_station, #update_station
Methods included from Endpoints::OneCall
Methods included from Endpoints::ThirtyDayForecast
Methods included from Endpoints::Hourly
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.
15 16 17 18 19 20 |
# File 'lib/open_weather/client.rb', line 15 def initialize( = {}) OpenWeather::Config::ATTRIBUTES.each do |key| send("#{key}=", [key] || OpenWeather.config.send(key)) end @logger ||= OpenWeather::Logger.logger end |