Class: SmartyStreets::USEnrichment::GeoReference::Attributes
- Inherits:
-
Object
- Object
- SmartyStreets::USEnrichment::GeoReference::Attributes
- Defined in:
- lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/attributes.rb
Instance Attribute Summary collapse
-
#census_block ⇒ Object
readonly
Returns the value of attribute census_block.
-
#census_county_division ⇒ Object
readonly
Returns the value of attribute census_county_division.
-
#census_tract ⇒ Object
readonly
Returns the value of attribute census_tract.
-
#core_based_stat_area ⇒ Object
readonly
Returns the value of attribute core_based_stat_area.
-
#place ⇒ Object
readonly
Returns the value of attribute place.
Instance Method Summary collapse
-
#initialize(obj) ⇒ Attributes
constructor
A new instance of Attributes.
Constructor Details
#initialize(obj) ⇒ Attributes
Returns a new instance of Attributes.
13 14 15 16 17 18 19 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/attributes.rb', line 13 def initialize(obj) @census_block = GeoReference::CensusBlockEntry.new(obj['census_block']) @census_county_division = GeoReference::CensusCountyDivisionEntry.new(obj['census_county_division']) @census_tract = GeoReference::CensusTractEntry.new(obj['census_tract']) @core_based_stat_area = GeoReference::CoreBasedStatAreaEntry.new(obj['core_based_stat_area']) @place = GeoReference::PlaceEntry.new(obj['place']) end |
Instance Attribute Details
#census_block ⇒ Object (readonly)
Returns the value of attribute census_block.
11 12 13 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/attributes.rb', line 11 def census_block @census_block end |
#census_county_division ⇒ Object (readonly)
Returns the value of attribute census_county_division.
11 12 13 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/attributes.rb', line 11 def census_county_division @census_county_division end |
#census_tract ⇒ Object (readonly)
Returns the value of attribute census_tract.
11 12 13 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/attributes.rb', line 11 def census_tract @census_tract end |
#core_based_stat_area ⇒ Object (readonly)
Returns the value of attribute core_based_stat_area.
11 12 13 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/attributes.rb', line 11 def core_based_stat_area @core_based_stat_area end |
#place ⇒ Object (readonly)
Returns the value of attribute place.
11 12 13 |
# File 'lib/smartystreets_ruby_sdk/us_enrichment/geo_reference/attributes.rb', line 11 def place @place end |