Class: SmartyStreets::USReverseGeo::Response
- Inherits:
-
Object
- Object
- SmartyStreets::USReverseGeo::Response
- Defined in:
- lib/smartystreets_ruby_sdk/us_reverse_geo/us_reverse_geo_response.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
-
#initialize(obj) ⇒ Response
constructor
A new instance of Response.
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
#results ⇒ Object (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 |