Class: Google::Apis::CivicinfoV2::StreetSegment
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::StreetSegment
- 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
-
#administration_region_ids ⇒ Array<String>
Corresponds to the JSON property
administrationRegionIds
. -
#before_geocode_id ⇒ String
Corresponds to the JSON property
beforeGeocodeId
. -
#catalist_unique_precinct_code ⇒ String
Corresponds to the JSON property
catalistUniquePrecinctCode
. -
#city ⇒ String
Corresponds to the JSON property
city
. -
#city_council_district ⇒ String
Corresponds to the JSON property
cityCouncilDistrict
. -
#congressional_district ⇒ String
Corresponds to the JSON property
congressionalDistrict
. -
#contest_ids ⇒ Array<String>
Corresponds to the JSON property
contestIds
. -
#county_council_district ⇒ String
Corresponds to the JSON property
countyCouncilDistrict
. -
#county_fips ⇒ String
Corresponds to the JSON property
countyFips
. -
#dataset_id ⇒ Fixnum
Corresponds to the JSON property
datasetId
. -
#early_vote_site_by_ids ⇒ Array<String>
Corresponds to the JSON property
earlyVoteSiteByIds
. -
#end_house_number ⇒ Fixnum
Corresponds to the JSON property
endHouseNumber
. -
#geocoded_point ⇒ Google::Apis::CivicinfoV2::PointProto
Corresponds to the JSON property
geocodedPoint
. -
#geographic_division_ocd_ids ⇒ Array<String>
Corresponds to the JSON property
geographicDivisionOcdIds
. -
#id ⇒ String
Corresponds to the JSON property
id
. -
#judicial_district ⇒ String
Corresponds to the JSON property
judicialDistrict
. -
#mail_only ⇒ Boolean
(also: #mail_only?)
Corresponds to the JSON property
mailOnly
. -
#municipal_district ⇒ String
Corresponds to the JSON property
municipalDistrict
. -
#ncoa_address ⇒ String
Corresponds to the JSON property
ncoaAddress
. -
#odd_or_evens ⇒ Array<String>
Corresponds to the JSON property
oddOrEvens
. -
#original_id ⇒ String
Corresponds to the JSON property
originalId
. -
#pollinglocation_by_ids ⇒ Array<String>
Corresponds to the JSON property
pollinglocationByIds
. -
#precinct_name ⇒ String
Corresponds to the JSON property
precinctName
. -
#precinct_ocd_id ⇒ String
Corresponds to the JSON property
precinctOcdId
. -
#provenances ⇒ Array<Google::Apis::CivicinfoV2::Provenance>
Corresponds to the JSON property
provenances
. -
#published ⇒ Boolean
(also: #published?)
Corresponds to the JSON property
published
. -
#school_district ⇒ String
Corresponds to the JSON property
schoolDistrict
. -
#start_house_number ⇒ Fixnum
Corresponds to the JSON property
startHouseNumber
. -
#start_lat_e7 ⇒ Fixnum
Corresponds to the JSON property
startLatE7
. -
#start_lng_e7 ⇒ Fixnum
Corresponds to the JSON property
startLngE7
. -
#state ⇒ String
Corresponds to the JSON property
state
. -
#state_house_district ⇒ String
Corresponds to the JSON property
stateHouseDistrict
. -
#state_senate_district ⇒ String
Corresponds to the JSON property
stateSenateDistrict
. -
#street_name ⇒ String
Corresponds to the JSON property
streetName
. -
#sub_administrative_area_name ⇒ String
Corresponds to the JSON property
subAdministrativeAreaName
. -
#surrogate_id ⇒ Fixnum
Corresponds to the JSON property
surrogateId
. -
#targetsmart_unique_precinct_code ⇒ String
Corresponds to the JSON property
targetsmartUniquePrecinctCode
. -
#township_district ⇒ String
Corresponds to the JSON property
townshipDistrict
. -
#unit_number ⇒ String
Corresponds to the JSON property
unitNumber
. -
#unit_type ⇒ String
Corresponds to the JSON property
unitType
. -
#van_precinct_code ⇒ String
Corresponds to the JSON property
vanPrecinctCode
. -
#voter_geographic_division_ocd_ids ⇒ Array<String>
Corresponds to the JSON property
voterGeographicDivisionOcdIds
. -
#ward_district ⇒ String
Corresponds to the JSON property
wardDistrict
. -
#wildcard ⇒ Boolean
(also: #wildcard?)
Corresponds to the JSON property
wildcard
. -
#zip ⇒ String
Corresponds to the JSON property
zip
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StreetSegment
constructor
A new instance of StreetSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ StreetSegment
Returns a new instance of StreetSegment.
1712 1713 1714 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1712 def initialize(**args) update!(**args) end |
Instance Attribute Details
#administration_region_ids ⇒ Array<String>
Corresponds to the JSON property administrationRegionIds
1487 1488 1489 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1487 def administration_region_ids @administration_region_ids end |
#before_geocode_id ⇒ String
Corresponds to the JSON property beforeGeocodeId
1492 1493 1494 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1492 def before_geocode_id @before_geocode_id end |
#catalist_unique_precinct_code ⇒ String
Corresponds to the JSON property catalistUniquePrecinctCode
1497 1498 1499 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1497 def catalist_unique_precinct_code @catalist_unique_precinct_code end |
#city ⇒ String
Corresponds to the JSON property city
1502 1503 1504 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1502 def city @city end |
#city_council_district ⇒ String
Corresponds to the JSON property cityCouncilDistrict
1507 1508 1509 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1507 def city_council_district @city_council_district end |
#congressional_district ⇒ String
Corresponds to the JSON property congressionalDistrict
1512 1513 1514 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1512 def congressional_district @congressional_district end |
#contest_ids ⇒ Array<String>
Corresponds to the JSON property contestIds
1517 1518 1519 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1517 def contest_ids @contest_ids end |
#county_council_district ⇒ String
Corresponds to the JSON property countyCouncilDistrict
1522 1523 1524 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1522 def county_council_district @county_council_district end |
#county_fips ⇒ String
Corresponds to the JSON property countyFips
1527 1528 1529 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1527 def county_fips @county_fips end |
#dataset_id ⇒ Fixnum
Corresponds to the JSON property datasetId
1532 1533 1534 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1532 def dataset_id @dataset_id end |
#early_vote_site_by_ids ⇒ Array<String>
Corresponds to the JSON property earlyVoteSiteByIds
1537 1538 1539 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1537 def early_vote_site_by_ids @early_vote_site_by_ids end |
#end_house_number ⇒ Fixnum
Corresponds to the JSON property endHouseNumber
1542 1543 1544 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1542 def end_house_number @end_house_number end |
#geocoded_point ⇒ Google::Apis::CivicinfoV2::PointProto
Corresponds to the JSON property geocodedPoint
1547 1548 1549 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1547 def geocoded_point @geocoded_point end |
#geographic_division_ocd_ids ⇒ Array<String>
Corresponds to the JSON property geographicDivisionOcdIds
1552 1553 1554 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1552 def geographic_division_ocd_ids @geographic_division_ocd_ids end |
#id ⇒ String
Corresponds to the JSON property id
1557 1558 1559 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1557 def id @id end |
#judicial_district ⇒ String
Corresponds to the JSON property judicialDistrict
1562 1563 1564 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1562 def judicial_district @judicial_district end |
#mail_only ⇒ Boolean Also known as: mail_only?
Corresponds to the JSON property mailOnly
1567 1568 1569 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1567 def mail_only @mail_only end |
#municipal_district ⇒ String
Corresponds to the JSON property municipalDistrict
1573 1574 1575 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1573 def municipal_district @municipal_district end |
#ncoa_address ⇒ String
Corresponds to the JSON property ncoaAddress
1578 1579 1580 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1578 def ncoa_address @ncoa_address end |
#odd_or_evens ⇒ Array<String>
Corresponds to the JSON property oddOrEvens
1583 1584 1585 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1583 def odd_or_evens @odd_or_evens end |
#original_id ⇒ String
Corresponds to the JSON property originalId
1588 1589 1590 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1588 def original_id @original_id end |
#pollinglocation_by_ids ⇒ Array<String>
Corresponds to the JSON property pollinglocationByIds
1593 1594 1595 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1593 def pollinglocation_by_ids @pollinglocation_by_ids end |
#precinct_name ⇒ String
Corresponds to the JSON property precinctName
1598 1599 1600 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1598 def precinct_name @precinct_name end |
#precinct_ocd_id ⇒ String
Corresponds to the JSON property precinctOcdId
1603 1604 1605 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1603 def precinct_ocd_id @precinct_ocd_id end |
#provenances ⇒ Array<Google::Apis::CivicinfoV2::Provenance>
Corresponds to the JSON property provenances
1608 1609 1610 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1608 def provenances @provenances end |
#published ⇒ Boolean Also known as: published?
Corresponds to the JSON property published
1613 1614 1615 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1613 def published @published end |
#school_district ⇒ String
Corresponds to the JSON property schoolDistrict
1619 1620 1621 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1619 def school_district @school_district end |
#start_house_number ⇒ Fixnum
Corresponds to the JSON property startHouseNumber
1624 1625 1626 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1624 def start_house_number @start_house_number end |
#start_lat_e7 ⇒ Fixnum
Corresponds to the JSON property startLatE7
1629 1630 1631 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1629 def start_lat_e7 @start_lat_e7 end |
#start_lng_e7 ⇒ Fixnum
Corresponds to the JSON property startLngE7
1634 1635 1636 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1634 def start_lng_e7 @start_lng_e7 end |
#state ⇒ String
Corresponds to the JSON property state
1639 1640 1641 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1639 def state @state end |
#state_house_district ⇒ String
Corresponds to the JSON property stateHouseDistrict
1644 1645 1646 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1644 def state_house_district @state_house_district end |
#state_senate_district ⇒ String
Corresponds to the JSON property stateSenateDistrict
1649 1650 1651 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1649 def state_senate_district @state_senate_district end |
#street_name ⇒ String
Corresponds to the JSON property streetName
1654 1655 1656 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1654 def street_name @street_name end |
#sub_administrative_area_name ⇒ String
Corresponds to the JSON property subAdministrativeAreaName
1659 1660 1661 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1659 def sub_administrative_area_name @sub_administrative_area_name end |
#surrogate_id ⇒ Fixnum
Corresponds to the JSON property surrogateId
1664 1665 1666 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1664 def surrogate_id @surrogate_id end |
#targetsmart_unique_precinct_code ⇒ String
Corresponds to the JSON property targetsmartUniquePrecinctCode
1669 1670 1671 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1669 def targetsmart_unique_precinct_code @targetsmart_unique_precinct_code end |
#township_district ⇒ String
Corresponds to the JSON property townshipDistrict
1674 1675 1676 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1674 def township_district @township_district end |
#unit_number ⇒ String
Corresponds to the JSON property unitNumber
1679 1680 1681 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1679 def unit_number @unit_number end |
#unit_type ⇒ String
Corresponds to the JSON property unitType
1684 1685 1686 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1684 def unit_type @unit_type end |
#van_precinct_code ⇒ String
Corresponds to the JSON property vanPrecinctCode
1689 1690 1691 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1689 def van_precinct_code @van_precinct_code end |
#voter_geographic_division_ocd_ids ⇒ Array<String>
Corresponds to the JSON property voterGeographicDivisionOcdIds
1694 1695 1696 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1694 def voter_geographic_division_ocd_ids @voter_geographic_division_ocd_ids end |
#ward_district ⇒ String
Corresponds to the JSON property wardDistrict
1699 1700 1701 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1699 def ward_district @ward_district end |
#wildcard ⇒ Boolean Also known as: wildcard?
Corresponds to the JSON property wildcard
1704 1705 1706 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1704 def wildcard @wildcard end |
#zip ⇒ String
Corresponds to the JSON property zip
1710 1711 1712 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1710 def zip @zip end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 1717 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 |