class Geocodio::Client::Error
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/geocodio/client/error.rb, line 6 def initialize(response) @response, @json = response, JSON.parse(response.body) end
Public Instance Methods
body()
click to toggle source
# File lib/geocodio/client/error.rb, line 10 def body() @json end
message()
click to toggle source
# File lib/geocodio/client/error.rb, line 11 def message() body['error'] end
Also aliased as: error