Class: SmartyStreets::USEnrichment::GeoReference::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ Response

Returns a new instance of Response.



9
10
11
12
13
14
15
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 9

def initialize(obj)
  @smarty_key = obj['smarty_key']
  @data_set_name = obj['data_set_name']
  @data_set_version = obj['data_set_version']
  @matched_address = obj['matched_address']
  @attributes = Attributes.new(obj['attributes'])
end

Instance Attribute Details

#attributesObject (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_nameObject (readonly)

Returns the value of attribute data_set_name.



7
8
9
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 7

def data_set_name
  @data_set_name
end

#data_set_versionObject (readonly)

Returns the value of attribute data_set_version.



7
8
9
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 7

def data_set_version
  @data_set_version
end

#matched_addressObject (readonly)

Returns the value of attribute matched_address.



7
8
9
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/response.rb', line 7

def matched_address
  @matched_address
end

#smarty_keyObject (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