Exception: GoogleMapsGeocoder::GeocodingError
- Inherits:
-
StandardError
- Object
- StandardError
- GoogleMapsGeocoder::GeocodingError
- Defined in:
- lib/google_maps_geocoder/google_maps_geocoder.rb
Overview
A geocoding error returned by Google Maps.
Instance Attribute Summary collapse
-
#json ⇒ Hash
readonly
Returns the complete JSON response from Google Maps as a Hash.
Instance Method Summary collapse
-
#initialize(json = {}) ⇒ GeocodingError
constructor
Initialize a GeocodingError wrapping the JSON returned by Google Maps.
Constructor Details
#initialize(json = {}) ⇒ GeocodingError
Initialize a GeocodingError wrapping the JSON returned by Google Maps.
126 127 128 129 130 131 132 |
# File 'lib/google_maps_geocoder/google_maps_geocoder.rb', line 126 def initialize(json = {}) @json = json if ( = @json['error_message']) Logger.new($stderr).error() end super(@json) end |
Instance Attribute Details
#json ⇒ Hash (readonly)
Returns the complete JSON response from Google Maps as a Hash.
120 121 122 |
# File 'lib/google_maps_geocoder/google_maps_geocoder.rb', line 120 def json @json end |