Class: Google::Apis::CivicinfoV2::QueryElectionsResponse

Inherits:
Object
  • Object
show all
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

The list of elections available for this version of the API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryElectionsResponse

Returns a new instance of QueryElectionsResponse.



611
612
613
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 611

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

Instance Attribute Details

#electionsArray<Google::Apis::CivicinfoV2::Election>

A list of available elections Corresponds to the JSON property elections



603
604
605
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 603

def elections
  @elections
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "civicinfo# electionsQueryResponse". Corresponds to the JSON property kind

Returns:

  • (String)


609
610
611
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 609

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



616
617
618
619
# File 'generated/google/apis/civicinfo_v2/classes.rb', line 616

def update!(**args)
  @elections = args[:elections] if args.key?(:elections)
  @kind = args[:kind] if args.key?(:kind)
end