Current section

Files

Jump to
timber lib timber contexts user_context.ex
Raw

lib/timber/contexts/user_context.ex

defmodule Timber.Contexts.UserContext do
@moduledoc """
Tracks a user
"""
@type t :: %__MODULE__{
id: String.t,
name: String.t,
email: String.t
}
@type m :: %{
id: String.t,
name: String.t,
email: String.t
}
defstruct [:id, :name, :email]
def new(opts) do
struct(__MODULE__, opts)
end
end