Class: GooglePlaces::RequestDeniedError

Inherits:
HTTParty::ResponseError
  • Object
show all
Defined in:
lib/google_places/error.rb

Overview

Thrown when a request was denied by the server

This can be the case when:

  • API key is not authorized for the Places API

  • querying the SPOT_LIST_URL without the following parameters:

    • key

Instance Method Summary collapse

Instance Method Details

#to_sObject



12
13
14
# File 'lib/google_places/error.rb', line 12

def to_s
  response.parsed_response['error_message']
end