Class: SmartyStreets::USEnrichment::GeoReference::CoreBasedStatAreaEntry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ CoreBasedStatAreaEntry

Returns a new instance of CoreBasedStatAreaEntry.



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

def initialize(obj)
  @code = obj['code']
  @name = obj['name']
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/core_based_stat_area_entry.rb', line 5

def code
  @code
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/core_based_stat_area_entry.rb', line 5

def name
  @name
end