Packages

An Elixir client for Betradar's Unified Odds Feed (UOF) API

Current section

Files

Jump to
uof_api lib uof api schemas sports clock.ex
Raw

lib/uof/api/schemas/sports/clock.ex

defmodule UOF.API.Schemas.Sports.Clock do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:match_time, :string)
field(:stoppage_time, :string)
field(:stoppage_time_announced, :string)
end
def changeset(struct, params) do
struct
|> cast(params, [:match_time, :stoppage_time, :stoppage_time_announced])
end
end