Class: Google::Apis::CivicinfoV2::StreetSegment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/google/apis/civicinfo_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StreetSegment

Returns a new instance of StreetSegment



1868
1869
1870
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1868

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#administration_region_idsArray<String>

Corresponds to the JSON property administrationRegionIds

Returns:

  • (Array<String>)


1643
1644
1645
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1643

def administration_region_ids
  @administration_region_ids
end

#before_geocode_idString

Corresponds to the JSON property beforeGeocodeId

Returns:

  • (String)


1648
1649
1650
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1648

def before_geocode_id
  @before_geocode_id
end

#catalist_unique_precinct_codeString

Corresponds to the JSON property catalistUniquePrecinctCode

Returns:

  • (String)


1653
1654
1655
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1653

def catalist_unique_precinct_code
  @catalist_unique_precinct_code
end

#cityString

Corresponds to the JSON property city

Returns:

  • (String)


1658
1659
1660
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1658

def city
  @city
end

#city_council_districtString

Corresponds to the JSON property cityCouncilDistrict

Returns:

  • (String)


1663
1664
1665
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1663

def city_council_district
  @city_council_district
end

#congressional_districtString

Corresponds to the JSON property congressionalDistrict

Returns:

  • (String)


1668
1669
1670
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1668

def congressional_district
  @congressional_district
end

#contest_idsArray<String>

Corresponds to the JSON property contestIds

Returns:

  • (Array<String>)


1673
1674
1675
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1673

def contest_ids
  @contest_ids
end

#county_council_districtString

Corresponds to the JSON property countyCouncilDistrict

Returns:

  • (String)


1678
1679
1680
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1678

def county_council_district
  @county_council_district
end

#county_fipsString

Corresponds to the JSON property countyFips

Returns:

  • (String)


1683
1684
1685
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1683

def county_fips
  @county_fips
end

#dataset_idFixnum

Corresponds to the JSON property datasetId

Returns:

  • (Fixnum)


1688
1689
1690
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1688

def dataset_id
  @dataset_id
end

#early_vote_site_by_idsArray<String>

Corresponds to the JSON property earlyVoteSiteByIds

Returns:

  • (Array<String>)


1693
1694
1695
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1693

def early_vote_site_by_ids
  @early_vote_site_by_ids
end

#end_house_numberFixnum

Corresponds to the JSON property endHouseNumber

Returns:

  • (Fixnum)


1698
1699
1700
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1698

def end_house_number
  @end_house_number
end

#geocoded_pointGoogle::Apis::CivicinfoV2::PointProto

Corresponds to the JSON property geocodedPoint



1703
1704
1705
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1703

def geocoded_point
  @geocoded_point
end

#geographic_division_ocd_idsArray<String>

Corresponds to the JSON property geographicDivisionOcdIds

Returns:

  • (Array<String>)


1708
1709
1710
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1708

def geographic_division_ocd_ids
  @geographic_division_ocd_ids
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


1713
1714
1715
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1713

def id
  @id
end

#judicial_districtString

Corresponds to the JSON property judicialDistrict

Returns:

  • (String)


1718
1719
1720
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1718

def judicial_district
  @judicial_district
end

#mail_onlyBoolean Also known as: mail_only?

Corresponds to the JSON property mailOnly

Returns:

  • (Boolean)


1723
1724
1725
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1723

def mail_only
  @mail_only
end

#municipal_districtString

Corresponds to the JSON property municipalDistrict

Returns:

  • (String)


1729
1730
1731
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1729

def municipal_district
  @municipal_district
end

#ncoa_addressString

Corresponds to the JSON property ncoaAddress

Returns:

  • (String)


1734
1735
1736
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1734

def ncoa_address
  @ncoa_address
end

#odd_or_evensArray<String>

Corresponds to the JSON property oddOrEvens

Returns:

  • (Array<String>)


1739
1740
1741
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1739

def odd_or_evens
  @odd_or_evens
end

#original_idString

Corresponds to the JSON property originalId

Returns:

  • (String)


1744
1745
1746
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1744

def original_id
  @original_id
end

#pollinglocation_by_idsArray<String>

Corresponds to the JSON property pollinglocationByIds

Returns:

  • (Array<String>)


1749
1750
1751
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1749

def pollinglocation_by_ids
  @pollinglocation_by_ids
end

#precinct_nameString

Corresponds to the JSON property precinctName

Returns:

  • (String)


1754
1755
1756
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1754

def precinct_name
  @precinct_name
end

#precinct_ocd_idString

Corresponds to the JSON property precinctOcdId

Returns:

  • (String)


1759
1760
1761
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1759

def precinct_ocd_id
  @precinct_ocd_id
end

#provenancesArray<Google::Apis::CivicinfoV2::Provenance>

Corresponds to the JSON property provenances



1764
1765
1766
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1764

def provenances
  @provenances
end

#publishedBoolean Also known as: published?

Corresponds to the JSON property published

Returns:

  • (Boolean)


1769
1770
1771
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1769

def published
  @published
end

#school_districtString

Corresponds to the JSON property schoolDistrict

Returns:

  • (String)


1775
1776
1777
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1775

def school_district
  @school_district
end

#start_house_numberFixnum

Corresponds to the JSON property startHouseNumber

Returns:

  • (Fixnum)


1780
1781
1782
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1780

def start_house_number
  @start_house_number
end

#start_lat_e7Fixnum

Corresponds to the JSON property startLatE7

Returns:

  • (Fixnum)


1785
1786
1787
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1785

def start_lat_e7
  @start_lat_e7
end

#start_lng_e7Fixnum

Corresponds to the JSON property startLngE7

Returns:

  • (Fixnum)


1790
1791
1792
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1790

def start_lng_e7
  @start_lng_e7
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


1795
1796
1797
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1795

def state
  @state
end

#state_house_districtString

Corresponds to the JSON property stateHouseDistrict

Returns:

  • (String)


1800
1801
1802
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1800

def state_house_district
  @state_house_district
end

#state_senate_districtString

Corresponds to the JSON property stateSenateDistrict

Returns:

  • (String)


1805
1806
1807
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1805

def state_senate_district
  @state_senate_district
end

#street_nameString

Corresponds to the JSON property streetName

Returns:

  • (String)


1810
1811
1812
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1810

def street_name
  @street_name
end

#sub_administrative_area_nameString

Corresponds to the JSON property subAdministrativeAreaName

Returns:

  • (String)


1815
1816
1817
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1815

def sub_administrative_area_name
  @sub_administrative_area_name
end

#surrogate_idFixnum

Corresponds to the JSON property surrogateId

Returns:

  • (Fixnum)


1820
1821
1822
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1820

def surrogate_id
  @surrogate_id
end

#targetsmart_unique_precinct_codeString

Corresponds to the JSON property targetsmartUniquePrecinctCode

Returns:

  • (String)


1825
1826
1827
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1825

def targetsmart_unique_precinct_code
  @targetsmart_unique_precinct_code
end

#township_districtString

Corresponds to the JSON property townshipDistrict

Returns:

  • (String)


1830
1831
1832
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1830

def township_district
  @township_district
end

#unit_numberString

Corresponds to the JSON property unitNumber

Returns:

  • (String)


1835
1836
1837
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1835

def unit_number
  @unit_number
end

#unit_typeString

Corresponds to the JSON property unitType

Returns:

  • (String)


1840
1841
1842
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1840

def unit_type
  @unit_type
end

#van_precinct_codeString

Corresponds to the JSON property vanPrecinctCode

Returns:

  • (String)


1845
1846
1847
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1845

def van_precinct_code
  @van_precinct_code
end

#voter_geographic_division_ocd_idsArray<String>

Corresponds to the JSON property voterGeographicDivisionOcdIds

Returns:

  • (Array<String>)


1850
1851
1852
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1850

def voter_geographic_division_ocd_ids
  @voter_geographic_division_ocd_ids
end

#ward_districtString

Corresponds to the JSON property wardDistrict

Returns:

  • (String)


1855
1856
1857
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1855

def ward_district
  @ward_district
end

#wildcardBoolean Also known as: wildcard?

Corresponds to the JSON property wildcard

Returns:

  • (Boolean)


1860
1861
1862
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1860

def wildcard
  @wildcard
end

#zipString

Corresponds to the JSON property zip

Returns:

  • (String)


1866
1867
1868
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1866

def zip
  @zip
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1873

def update!(**args)
  @administration_region_ids = args[:administration_region_ids] if args.key?(:administration_region_ids)
  @before_geocode_id = args[:before_geocode_id] if args.key?(:before_geocode_id)
  @catalist_unique_precinct_code = args[:catalist_unique_precinct_code] if args.key?(:catalist_unique_precinct_code)
  @city = args[:city] if args.key?(:city)
  @city_council_district = args[:city_council_district] if args.key?(:city_council_district)
  @congressional_district = args[:congressional_district] if args.key?(:congressional_district)
  @contest_ids = args[:contest_ids] if args.key?(:contest_ids)
  @county_council_district = args[:county_council_district] if args.key?(:county_council_district)
  @county_fips = args[:county_fips] if args.key?(:county_fips)
  @dataset_id = args[:dataset_id] if args.key?(:dataset_id)
  @early_vote_site_by_ids = args[:early_vote_site_by_ids] if args.key?(:early_vote_site_by_ids)
  @end_house_number = args[:end_house_number] if args.key?(:end_house_number)
  @geocoded_point = args[:geocoded_point] if args.key?(:geocoded_point)
  @geographic_division_ocd_ids = args[:geographic_division_ocd_ids] if args.key?(:geographic_division_ocd_ids)
  @id = args[:id] if args.key?(:id)
  @judicial_district = args[:judicial_district] if args.key?(:judicial_district)
  @mail_only = args[:mail_only] if args.key?(:mail_only)
  @municipal_district = args[:municipal_district] if args.key?(:municipal_district)
  @ncoa_address = args[:ncoa_address] if args.key?(:ncoa_address)
  @odd_or_evens = args[:odd_or_evens] if args.key?(:odd_or_evens)
  @original_id = args[:original_id] if args.key?(:original_id)
  @pollinglocation_by_ids = args[:pollinglocation_by_ids] if args.key?(:pollinglocation_by_ids)
  @precinct_name = args[:precinct_name] if args.key?(:precinct_name)
  @precinct_ocd_id = args[:precinct_ocd_id] if args.key?(:precinct_ocd_id)
  @provenances = args[:provenances] if args.key?(:provenances)
  @published = args[:published] if args.key?(:published)
  @school_district = args[:school_district] if args.key?(:school_district)
  @start_house_number = args[:start_house_number] if args.key?(:start_house_number)
  @start_lat_e7 = args[:start_lat_e7] if args.key?(:start_lat_e7)
  @start_lng_e7 = args[:start_lng_e7] if args.key?(:start_lng_e7)
  @state = args[:state] if args.key?(:state)
  @state_house_district = args[:state_house_district] if args.key?(:state_house_district)
  @state_senate_district = args[:state_senate_district] if args.key?(:state_senate_district)
  @street_name = args[:street_name] if args.key?(:street_name)
  @sub_administrative_area_name = args[:sub_administrative_area_name] if args.key?(:sub_administrative_area_name)
  @surrogate_id = args[:surrogate_id] if args.key?(:surrogate_id)
  @targetsmart_unique_precinct_code = args[:targetsmart_unique_precinct_code] if args.key?(:targetsmart_unique_precinct_code)
  @township_district = args[:township_district] if args.key?(:township_district)
  @unit_number = args[:unit_number] if args.key?(:unit_number)
  @unit_type = args[:unit_type] if args.key?(:unit_type)
  @van_precinct_code = args[:van_precinct_code] if args.key?(:van_precinct_code)
  @voter_geographic_division_ocd_ids = args[:voter_geographic_division_ocd_ids] if args.key?(:voter_geographic_division_ocd_ids)
  @ward_district = args[:ward_district] if args.key?(:ward_district)
  @wildcard = args[:wildcard] if args.key?(:wildcard)
  @zip = args[:zip] if args.key?(:zip)
end