class Google::Apis::CivicinfoV2::QueryElectionsResponse
The list of elections available for this version of the API.
Attributes
elections[RW]
A list of available elections Corresponds to the JSON property `elections` @return [Array<Google::Apis::CivicinfoV2::Election>]
kind[RW]
Identifies what kind of resource this is. Value: the fixed string “civicinfo# electionsQueryResponse”. Corresponds to the JSON property `kind` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/civicinfo_v2/classes.rb, line 597 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/civicinfo_v2/classes.rb, line 602 def update!(**args) @elections = args[:elections] if args.key?(:elections) @kind = args[:kind] if args.key?(:kind) end