Exception: OWMO::Weather::WeatherResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- OWMO::Weather::WeatherResponseError
- Defined in:
- lib/owmo/weather.rb
Overview
rdoc Weather response error to handle errors received from OpenWeatherMap.orgs API
Instance Method Summary collapse
-
#initialize(weather_response) ⇒ WeatherResponseError
constructor
A new instance of WeatherResponseError.
Constructor Details
#initialize(weather_response) ⇒ WeatherResponseError
Returns a new instance of WeatherResponseError.
22 23 24 |
# File 'lib/owmo/weather.rb', line 22 def initialize(weather_response) super("ERROR #{weather_response.code}: #{weather_response.weather}") end |