class OWMO::Weather::WeatherResponseError

Weather response error to handle errors received from OpenWeatherMap.orgs API

Public Class Methods

new(response) click to toggle source
Calls superclass method
# File lib/owmo/weather.rb, line 30
def initialize(response)
  @response = response
  super("ERROR #{@response.weather_code}: #{@response.weather_message}")
end