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