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 (Hurley::Response) (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

#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