Exception: GoogleMapsApis::Error::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/google_maps_apis/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 (Faraday::Response) (defaults to: nil)

    HTTP response.



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

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

Instance Attribute Details

#responseFaraday::Response (readonly)

HTTP response object

Returns:

  • (Faraday::Response)


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

def response
  @response
end