Class: SmartyStreets::USEnrichment::GeoReference::Response
- Inherits:
-
Object
- Object
- SmartyStreets::USEnrichment::GeoReference::Response
- Defined in:
- lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#data_set ⇒ Object
readonly
Returns the value of attribute data_set.
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#smarty_key ⇒ Object
readonly
Returns the value of attribute smarty_key.
Instance Method Summary collapse
-
#initialize(obj, etag = nil) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(obj, etag = nil) ⇒ Response
Returns a new instance of Response.
9 10 11 12 13 14 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 9 def initialize(obj, etag=nil) @smarty_key = obj['smarty_key'] @data_set = 'geo-reference' @attributes = Attributes.new(obj['attributes']) @etag = etag end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 7 def attributes @attributes end |
#data_set ⇒ Object (readonly)
Returns the value of attribute data_set.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 7 def data_set @data_set end |
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 7 def etag @etag end |
#smarty_key ⇒ Object (readonly)
Returns the value of attribute smarty_key.
7 8 9 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 7 def smarty_key @smarty_key end |