Packages

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

Current section

Files

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

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

defmodule UOF.API.Schemas.Sports.Manager do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:id, :string)
field(:name, :string)
field(:nationality, :string)
field(:country_code, :string)
end
def changeset(struct, params) do
struct
|> cast(params, [:id, :name, :nationality, :country_code])
end
end