Exception: GoogleMapsService::Error::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/google_maps_service/errors.rb

Overview

Base error, capable of wrapping another

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response = nil) ⇒ BaseError

Initialize error

Parameters:

  • response (Net::HTTPResponse) (defaults to: nil)

    HTTP response.



13
14
15
# File 'lib/google_maps_service/errors.rb', line 13

def initialize(response = nil)
  @response = response
end

Instance Attribute Details

#responseNet::HTTPResponse (readonly)

HTTP response object

Returns:

  • (Net::HTTPResponse)


8
9
10
# File 'lib/google_maps_service/errors.rb', line 8

def response
  @response
end