class Google::Apis::CivicinfoV2::DivisionSearchResult
Represents a political geographic division that matches the requested query.
Attributes
aliases[RW]
Other Open Civic Data identifiers that refer to the same division – for example, those that refer to other political divisions whose boundaries are defined to be coterminous with this one. For example, ocd-division/country:us/ state:wy will include an alias of ocd-division/country:us/state:wy/cd:1, since Wyoming has only one Congressional district. Corresponds to the JSON property `aliases` @return [Array<String>]
name[RW]
The name of the division. Corresponds to the JSON property `name` @return [String]
ocd_id[RW]
The unique Open Civic Data identifier for this division. Corresponds to the JSON property `ocdId` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/civicinfo_v2/classes.rb, line 487 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/civicinfo_v2/classes.rb, line 492 def update!(**args) @aliases = args[:aliases] if args.key?(:aliases) @name = args[:name] if args.key?(:name) @ocd_id = args[:ocd_id] if args.key?(:ocd_id) end