Exception: Weatheruby::WeatherError
- Inherits:
-
StandardError
- Object
- StandardError
- Weatheruby::WeatherError
- Defined in:
- lib/weatheruby.rb
Instance Attribute Summary collapse
-
#full_response ⇒ Hash
readonly
The full parsed HTTP response.
Instance Method Summary collapse
-
#initialize(json, type, description) ⇒ WeatherError
constructor
A new instance of WeatherError.
-
#message ⇒ Object
Constructor Details
#initialize(json, type, description) ⇒ WeatherError
Returns a new instance of WeatherError
12 13 14 15 16 |
# File 'lib/weatheruby.rb', line 12 def initialize(json, type, description) @full_response = json @type = type @description = description end |
Instance Attribute Details
#full_response ⇒ Hash (readonly)
Returns The full parsed HTTP response
10 11 12 |
# File 'lib/weatheruby.rb', line 10 def full_response @full_response end |
Instance Method Details
#message ⇒ Object
18 19 20 |
# File 'lib/weatheruby.rb', line 18 def "#{@type}: #{@description}" end |