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]

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 lib/google/apis/civicinfo_v2/classes.rb, line 51
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 56
def update!(**args)
  @election_administration_body = args[:election_administration_body] if args.key?(:election_administration_body)
  @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