Class: Geocodio::Client::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/geocodio/client/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response


8
9
10
# File 'lib/geocodio/client/response.rb', line 8

def initialize(response)
  @body = JSON.parse(response.body)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body


6
7
8
# File 'lib/geocodio/client/response.rb', line 6

def body
  @body
end