Current section

Files

Jump to
ex_oura lib client sample_model.ex
Raw

lib/client/sample_model.ex

defmodule ExOura.Client.SampleModel do
@moduledoc """
Provides struct and type for a SampleModel
"""
@type t :: %__MODULE__{
interval: number,
items: [number | nil],
timestamp: ExOura.Client.SampleModelTimestamp.t()
}
defstruct [:interval, :items, :timestamp]
@doc false
@spec __fields__(atom) :: keyword
def __fields__(type \\ :t)
def __fields__(:t) do
[
interval: :number,
items: [union: [:number, :null]],
timestamp: {ExOura.Client.SampleModelTimestamp, :t}
]
end
end