class Google::Apis::CivicinfoV2::AdministrationRegion

Describes information about a regional election administrative area.

Attributes

election_administration_body[RW]

Information about an election administrative body (e.g. County Board of Elections). Corresponds to the JSON property `electionAdministrationBody` @return [Google::Apis::CivicinfoV2::AdministrativeBody]

id[RW]

An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. Corresponds to the JSON property `id` @return [String]

local_jurisdiction[RW]

Describes information about a regional election administrative area. Corresponds to the JSON property `local_jurisdiction` @return [Google::Apis::CivicinfoV2::AdministrationRegion]

name[RW]

The name of the jurisdiction. Corresponds to the JSON property `name` @return [String]

sources[RW]

A list of sources for this area. If multiple sources are listed the data has been aggregated from those sources. Corresponds to the JSON property `sources` @return [Array<Google::Apis::CivicinfoV2::Source>]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/civicinfo_v2/classes.rb, line 58
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 63
def update!(**args)
  @election_administration_body = args[:election_administration_body] if args.key?(:election_administration_body)
  @id = args[:id] if args.key?(:id)
  @local_jurisdiction = args[:local_jurisdiction] if args.key?(:local_jurisdiction)
  @name = args[:name] if args.key?(:name)
  @sources = args[:sources] if args.key?(:sources)
end