Exception: SimpleGeocoder::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- SimpleGeocoder::ResponseError
- Defined in:
- lib/simple_geocoder/exceptions.rb
Overview
contains the Net::HTTP response object accessible via the #response method.
Instance Attribute Summary collapse
-
#response ⇒ Net::HTTPResponse
readonly
response of the last request Net::HTTPOK.
Instance Method Summary collapse
-
#initialize(response) ⇒ ResponseError
constructor
Instantiate an instance of ResponseError with a Net::HTTPResponse object.
Constructor Details
#initialize(response) ⇒ ResponseError
Instantiate an instance of ResponseError with a Net::HTTPResponse object
11 12 13 |
# File 'lib/simple_geocoder/exceptions.rb', line 11 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Net::HTTPResponse (readonly)
response of the last request Net::HTTPOK
7 8 9 |
# File 'lib/simple_geocoder/exceptions.rb', line 7 def response @response end |