google_api_civic_info v0.13.0 GoogleApi.CivicInfo.V2.Model.Election View Source

Information about the election that was queried.

Attributes

  • electionDay (type: String.t, default: nil) - Day of the election in YYYY-MM-DD format.
  • id (type: String.t, default: nil) - The unique ID of this election.
  • name (type: String.t, default: nil) - A displayable name for the election.
  • ocdDivisionId (type: String.t, default: nil) - The political division of the election. Represented as an OCD Division ID. Voters within these political jurisdictions are covered by this election. This is typically a state such as ocd-division/country:us/state:ca or for the midterms or general election the entire US (i.e. ocd-division/country:us).

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CivicInfo.V2.Model.Election{
  electionDay: String.t(),
  id: String.t(),
  name: String.t(),
  ocdDivisionId: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.