Exception: SimpleGeocoder::ResponseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple_geocoder/exceptions.rb

Overview

contains the Net::HTTP response object accessible via the #response method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseError

Instantiate an instance of ResponseError with a Net::HTTPResponse object

Parameters:

  • (Net::HTTPResponse)


11
12
13
# File 'lib/simple_geocoder/exceptions.rb', line 11

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseNet::HTTPResponse (readonly)

response of the last request Net::HTTPOK

Returns:

  • (Net::HTTPResponse)

    A subclass of Net::HTTPResponse, e.g.



7
8
9
# File 'lib/simple_geocoder/exceptions.rb', line 7

def response
  @response
end