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

Information about a contest that appears on a voter's ballot.

Attributes

  • ballotPlacement (String.t): A number specifying the position of this contest on the voter's ballot. Defaults to: null.
  • ballotTitle (String.t): The official title on the ballot for this contest, only where available. Defaults to: null.
  • candidates ([Candidate]): The candidate choices for this contest. Defaults to: null.
  • district (ElectoralDistrict): Information about the electoral district that this contest is in. Defaults to: null.
  • electorateSpecifications (String.t): A description of any additional eligibility requirements for voting in this contest. Defaults to: null.
  • id (String.t): An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page. Defaults to: null.
  • level ([String.t]): The levels of government of the office for this contest. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1". Defaults to: null.
  • numberElected (String.t): The number of candidates that will be elected to office in this contest. Defaults to: null.
  • numberVotingFor (String.t): The number of candidates that a voter may vote for in this contest. Defaults to: null.
  • office (String.t): The name of the office for this contest. Defaults to: null.
  • primaryParty (String.t): If this is a partisan election, the name of the party it is for. Defaults to: null.
  • referendumBallotResponses ([String.t]): The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include "yes" or "no" for referenda. This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumBrief (String.t): Specifies a short summary of the referendum that is typically on the ballot below the title but above the text. This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumConStatement (String.t): A statement in opposition to the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumEffectOfAbstain (String.t): Specifies what effect abstaining (not voting) on the proposition will have (i.e. whether abstaining is considered a vote against it). This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumPassageThreshold (String.t): The threshold of votes that the referendum needs in order to pass, e.g. "two-thirds". This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumProStatement (String.t): A statement in favor of the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumSubtitle (String.t): A brief description of the referendum. This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumText (String.t): The full text of the referendum. This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumTitle (String.t): The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • referendumUrl (String.t): A link to the referendum. This field is only populated for contests of type 'Referendum'. Defaults to: null.
  • roles ([String.t]): The roles which this office fulfills. Defaults to: null.
  • sources ([Source]): A list of sources for this contest. If multiple sources are listed, the data has been aggregated from those sources. Defaults to: null.
  • special (String.t): "Yes" or "No" depending on whether this a contest being held outside the normal election cycle. Defaults to: null.
  • type (String.t): The type of contest. Usually this will be 'General', 'Primary', or 'Run-off' for contests with candidates. For referenda this will be 'Referendum'. For Retention contests this will typically be 'Retention'. 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.Contest{
  ballotPlacement: any(),
  ballotTitle: any(),
  candidates: [GoogleApi.CivicInfo.V2.Model.Candidate.t()],
  district: GoogleApi.CivicInfo.V2.Model.ElectoralDistrict.t(),
  electorateSpecifications: any(),
  id: any(),
  level: [any()],
  numberElected: any(),
  numberVotingFor: any(),
  office: any(),
  primaryParty: any(),
  referendumBallotResponses: [any()],
  referendumBrief: any(),
  referendumConStatement: any(),
  referendumEffectOfAbstain: any(),
  referendumPassageThreshold: any(),
  referendumProStatement: any(),
  referendumSubtitle: any(),
  referendumText: any(),
  referendumTitle: any(),
  referendumUrl: any(),
  roles: [any()],
  sources: [GoogleApi.CivicInfo.V2.Model.Source.t()],
  special: any(),
  type: 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.