Class: Google::Apis::CivicinfoV2::QueryElectionsResponse
- Inherits:
-
Object
- Object
- Google::Apis::CivicinfoV2::QueryElectionsResponse
- 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
The list of elections available for this version of the API.
Instance Attribute Summary collapse
-
#elections ⇒ Array<Google::Apis::CivicinfoV2::Election>
A list of available elections Corresponds to the JSON property
elections
. -
#kind ⇒ String
Identifies what kind of resource this is.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QueryElectionsResponse
constructor
A new instance of QueryElectionsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QueryElectionsResponse
Returns a new instance of QueryElectionsResponse.
634 635 636 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 634 def initialize(**args) update!(**args) end |
Instance Attribute Details
#elections ⇒ Array<Google::Apis::CivicinfoV2::Election>
A list of available elections
Corresponds to the JSON property elections
626 627 628 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 626 def elections @elections end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "civicinfo#
electionsQueryResponse".
Corresponds to the JSON property kind
632 633 634 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 632 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
639 640 641 642 |
# File 'lib/google/apis/civicinfo_v2/classes.rb', line 639 def update!(**args) @elections = args[:elections] if args.key?(:elections) @kind = args[:kind] if args.key?(:kind) end |