CitraClient.Schemas.DailyTemperature (citra_client v0.3.0)

View Source

Daily temperature data

Fields

  • :daynumber() — Day temperature
  • :evenumber() — Evening temperature
  • :maxnumber() — Max daily temperature
  • :minnumber() — Min daily temperature
  • :mornnumber() — Morning temperature
  • :nightnumber() — Night temperature

Summary

Functions

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.

Types

t()

@type t() :: %CitraClient.Schemas.DailyTemperature{
  day: number() | nil,
  eve: number() | nil,
  max: number() | nil,
  min: number() | nil,
  morn: number() | nil,
  night: number() | nil
}

Functions

from_api(data)

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

to_api(struct)

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.