Class: SmartyStreets::USReverseGeo::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/us_reverse_geo/us_reverse_geo_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Response

Returns a new instance of Response.



8
9
10
11
12
13
14
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/us_reverse_geo_response.rb', line 8

def initialize(obj)
  @results = []

  obj['results'].each do |result|
    @results.push(Result.new(result))
  end
end

Instance Attribute Details

#resultsObject (readonly)

Returns the value of attribute results.



6
7
8
# File 'lib/smartystreets_ruby_sdk/us_reverse_geo/us_reverse_geo_response.rb', line 6

def results
  @results
end