class WeatherSage::HTTP::Error

HTTP error wrapper.

Attributes

url[RW]

Public Class Methods

new(url, code, resp) click to toggle source

Create Error instance from URL, response code, and response.

# File lib/weather-sage/http/error.rb, line 10
def initialize(url, code, resp)
  @url = url.freeze
  @code = code.freeze
  @response = resp.freeze
end