class Google::Apis::CivicinfoV2::ElectoralDistrict
Describes the geographic scope of a contest.
Attributes
id[RW]
An identifier for this district, relative to its scope. For example, the 34th State Senate district would have id “34” and a scope of stateUpper. Corresponds to the JSON property `id` @return [String]
name[RW]
The name of the district. Corresponds to the JSON property `name` @return [String]
scope[RW]
The geographic scope of this district. If unspecified the district's geography is not known. One of: national, statewide, congressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide, township, countyCouncil, cityCouncil, ward, special Corresponds to the JSON property `scope` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/civicinfo_v2/classes.rb, line 645 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/civicinfo_v2/classes.rb, line 650 def update!(**args) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @scope = args[:scope] if args.key?(:scope) end