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

Information about the election that was queried.

Attributes

  • electionDay (String.t): Day of the election in YYYY-MM-DD format. Defaults to: null.
  • id (String.t): The unique ID of this election. Defaults to: null.
  • name (String.t): A displayable name for the election. Defaults to: null.
  • ocdDivisionId (String.t): 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). 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.Election{
  electionDay: any(),
  id: any(),
  name: any(),
  ocdDivisionId: 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.