Class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/civicinfo_v2/classes.rb,
lib/google/apis/civicinfo_v2/representations.rb,
lib/google/apis/civicinfo_v2/representations.rb

Overview

Describes information about a regional election administrative area.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CivicinfoSchemaV2AdministrationRegion

Returns a new instance of CivicinfoSchemaV2AdministrationRegion.



265
266
267
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 265

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#election_administration_bodyGoogle::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrativeBody

Information about an election administrative body (e.g. County Board of Elections). Corresponds to the JSON property electionAdministrationBody



247
248
249
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 247

def election_administration_body
  @election_administration_body
end

#local_jurisdictionGoogle::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion

Describes information about a regional election administrative area. Corresponds to the JSON property local_jurisdiction



252
253
254
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 252

def local_jurisdiction
  @local_jurisdiction
end

#nameString

The name of the jurisdiction. Corresponds to the JSON property name

Returns:

  • (String)


257
258
259
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 257

def name
  @name
end

#sourcesArray<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source>

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



263
264
265
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 263

def sources
  @sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



270
271
272
273
274
275
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 270

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