google_api_civic_info v0.1.0 GoogleApi.CivicInfo.V2.Model.Candidate View Source

Information about a candidate running for elected office.

Attributes

  • candidateUrl (String.t): The URL for the candidate's campaign web site. Defaults to: null.
  • channels ([Channel]): A list of known (social) media channels for this candidate. Defaults to: null.
  • email (String.t): The email address for the candidate's campaign. Defaults to: null.
  • name (String.t): The candidate's name. If this is a joint ticket it will indicate the name of the candidate at the top of a ticket followed by a / and that name of candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan" Defaults to: null.
  • orderOnBallot (String.t): The order the candidate appears on the ballot for this contest. Defaults to: null.
  • party (String.t): The full name of the party the candidate is a member of. Defaults to: null.
  • phone (String.t): The voice phone number for the candidate's campaign office. Defaults to: null.
  • photoUrl (String.t): A URL for a photo of the candidate. Defaults to: null.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields

Link to this section Types

Link to this type t() View Source
t() :: %GoogleApi.CivicInfo.V2.Model.Candidate{
  candidateUrl: any(),
  channels: [GoogleApi.CivicInfo.V2.Model.Channel.t()],
  email: any(),
  name: any(),
  orderOnBallot: any(),
  party: any(),
  phone: any(),
  photoUrl: any()
}

Link to this section Functions

Link to this function decode(value, options) View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.