Packages

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

Current section

Files

Jump to
uof_api lib uof api schemas probability result.ex
Raw

lib/uof/api/schemas/probability/result.ex

defmodule UOF.API.Schemas.Probability.Result do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:match_status_code, :integer)
field(:home_score, :decimal)
field(:away_score, :decimal)
end
def changeset(struct, params) do
struct
|> cast(params, [:match_status_code, :home_score, :away_score])
end
end