Exception: GoogleMaps::Services::Exceptions::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/googlemaps/services/exceptions.rb

Overview

Represents an error raised by the remote API.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ APIError

Returns a new instance of APIError.

Since:

  • 1.0.0



13
14
15
# File 'lib/googlemaps/services/exceptions.rb', line 13

def initialize(status)
  self.status = status
end

Instance Attribute Details

#statusSymbol

Returns The response status code.

Returns:

  • (Symbol)

    The response status code.

Since:

  • 1.0.0



11
12
13
# File 'lib/googlemaps/services/exceptions.rb', line 11

def status
  @status
end