Class: SmartyStreets::USEnrichment::GeoReference::CoreBasedStatAreaEntry
- Inherits:
-
Object
- Object
- SmartyStreets::USEnrichment::GeoReference::CoreBasedStatAreaEntry
- Defined in:
- lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/core_based_stat_area_entry.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(obj) ⇒ CoreBasedStatAreaEntry
constructor
A new instance of CoreBasedStatAreaEntry.
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
#code ⇒ Object (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 |
#name ⇒ Object (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 |