Current section
Files
Jump to
Current section
Files
lib/example/mailer/email.ex
defmodule Rivet.Email.Example.Mailer.Email do
defstruct id: "", address: "", user: %Rivet.Email.Example.Mailer.User{}, verified: true
def preload(e, _), do: {:ok, %{e | user: Rivet.Email.Example.Mailer.User.mock()}}
def one(_), do: {:ok, mock()}
def mock() do
%__MODULE__{
id: "BOGUS001-fB40-4EEF-B352-307C280604C1",
address: "who@example.com"
}
end
end