Class: SmartyStreets::USEnrichment::Property::Principal::Response
- Inherits:
-
Object
- Object
- SmartyStreets::USEnrichment::Property::Principal::Response
- Defined in:
- lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#data_set_name ⇒ Object
readonly
Returns the value of attribute data_set_name.
-
#data_subset_name ⇒ Object
readonly
Returns the value of attribute data_subset_name.
-
#etag ⇒ Object
readonly
Returns the value of attribute etag.
-
#matched_address ⇒ Object
readonly
Returns the value of attribute matched_address.
-
#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
10 11 12 13 14 15 16 17 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb', line 10 def initialize(obj, etag=nil) @smarty_key = obj['smarty_key'] @data_set_name = obj['data_set_name'] @data_subset_name = obj['data_subset_name'] @matched_address = obj['matched_address'] @attributes = Attributes.new(obj['attributes']) @etag = etag end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
8 9 10 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb', line 8 def attributes @attributes end |
#data_set_name ⇒ Object (readonly)
Returns the value of attribute data_set_name.
8 9 10 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb', line 8 def data_set_name @data_set_name end |
#data_subset_name ⇒ Object (readonly)
Returns the value of attribute data_subset_name.
8 9 10 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb', line 8 def data_subset_name @data_subset_name end |
#etag ⇒ Object (readonly)
Returns the value of attribute etag.
8 9 10 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb', line 8 def etag @etag end |
#matched_address ⇒ Object (readonly)
Returns the value of attribute matched_address.
8 9 10 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb', line 8 def matched_address @matched_address end |
#smarty_key ⇒ Object (readonly)
Returns the value of attribute smarty_key.
8 9 10 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/property/principal/response.rb', line 8 def smarty_key @smarty_key end |