AutoApi.UnitType.units

You're seeing just the function units, go back to AutoApi.UnitType module for more information.

Specs

units(atom() | String.t() | id()) :: [atom()]

Returns all possible units for the given measurement type.

The type can be specified either by ID or name (string or atom).

Examples

iex> AutoApi.UnitType.units(:speed) |> List.first()
:meters_per_second
iex> AutoApi.UnitType.units("torque") |> List.first()
:newton_meters
iex> AutoApi.UnitType.units(0x11) |> List.first()
:lux