Class: Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion
- 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
-
#election_administration_body ⇒ Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrativeBody
Information about an election administrative body (e.g. County Board of Elections).
-
#local_jurisdiction ⇒ Google::Apis::CivicinfoV2::CivicinfoSchemaV2AdministrationRegion
Describes information about a regional election administrative area.
-
#name ⇒ String
The name of the jurisdiction.
-
#sources ⇒ Array<Google::Apis::CivicinfoV2::CivicinfoSchemaV2Source>
A list of sources for this area.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CivicinfoSchemaV2AdministrationRegion
constructor
A new instance of CivicinfoSchemaV2AdministrationRegion.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_body ⇒ Google::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_jurisdiction ⇒ Google::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 |
#name ⇒ String
The name of the jurisdiction.
Corresponds to the JSON property name
257 258 259 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 257 def name @name end |
#sources ⇒ Array<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 |