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

Returns a new instance of BaseError.



10
11
12
# File 'lib/google_maps_service/errors.rb', line 10

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

Instance Attribute Details

#responseHurley::Response (readonly)

HTTP response object

Returns:

  • (Hurley::Response)


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

def response
  @response
end