Class: SmartyStreets::USEnrichment::GeoReference::Attributes

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_blockObject (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_divisionObject (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_tractObject (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_areaObject (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

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