class Google::Apis::CivicinfoV2::Candidate
Information about a candidate running for elected office.
Attributes
The URL for the candidate's campaign web site. Corresponds to the JSON property `candidateUrl` @return [String]
A list of known (social) media channels for this candidate. Corresponds to the JSON property `channels` @return [Array<Google::Apis::CivicinfoV2::Channel>]
The email address for the candidate's campaign. Corresponds to the JSON property `email` @return [String]
The candidate's name. Corresponds to the JSON property `name` @return [String]
The order the candidate appears on the ballot for this contest. Corresponds to the JSON property `orderOnBallot` @return [String]
The full name of the party the candidate is a member of. Corresponds to the JSON property `party` @return [String]
The voice phone number for the candidate's campaign office. Corresponds to the JSON property `phone` @return [String]
A URL for a photo of the candidate. Corresponds to the JSON property `photoUrl` @return [String]
Public Class Methods
# File generated/google/apis/civicinfo_v2/classes.rb, line 213 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/civicinfo_v2/classes.rb, line 218 def update!(**args) @candidate_url = args[:candidate_url] if args.key?(:candidate_url) @channels = args[:channels] if args.key?(:channels) @email = args[:email] if args.key?(:email) @name = args[:name] if args.key?(:name) @order_on_ballot = args[:order_on_ballot] if args.key?(:order_on_ballot) @party = args[:party] if args.key?(:party) @phone = args[:phone] if args.key?(:phone) @photo_url = args[:photo_url] if args.key?(:photo_url) end