Class: Google::Apis::CivicinfoV2::AdministrationRegion
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::AdministrationRegion
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/civicinfo_v2/classes.rb,
generated/google/apis/civicinfo_v2/representations.rb,
generated/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::AdministrativeBody
Information about an election administrative body (e.g. County Board of Elections).
-
#local_jurisdiction ⇒ Google::Apis::CivicinfoV2::AdministrationRegion
Describes information about a regional election administrative area.
-
#name ⇒ String
The name of the jurisdiction.
-
#sources ⇒ Array<Google::Apis::CivicinfoV2::Source>
A list of sources for this area.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdministrationRegion
constructor
A new instance of AdministrationRegion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdministrationRegion
Returns a new instance of AdministrationRegion.
51 52 53 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 51 def initialize(**args) update!(**args) end |
Instance Attribute Details
#election_administration_body ⇒ Google::Apis::CivicinfoV2::AdministrativeBody
Information about an election administrative body (e.g. County Board of
Elections).
Corresponds to the JSON property electionAdministrationBody
33 34 35 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 33 def election_administration_body @election_administration_body end |
#local_jurisdiction ⇒ Google::Apis::CivicinfoV2::AdministrationRegion
Describes information about a regional election administrative area.
Corresponds to the JSON property local_jurisdiction
38 39 40 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 38 def local_jurisdiction @local_jurisdiction end |
#name ⇒ String
The name of the jurisdiction.
Corresponds to the JSON property name
43 44 45 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 43 def name @name end |
#sources ⇒ Array<Google::Apis::CivicinfoV2::Source>
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
49 50 51 |
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 49 def sources @sources end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
56 57 58 59 60 61 |
# File 'generated/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 |