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 generated/google/apis/civicinfo_v2/classes.rb, line 631
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 636
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