StrawHat.Mailer v0.4.4 StrawHat.Mailer.Partial View Source
Defines functionality for partial management.
A Partial is just a chunk of email content that you could reuse cross multiple emails.
Link to this section Summary
Functions
Create a partial
Destroy a partial
Get a partial by id
Get the list of partials by owner_id
Get a partial by id
Get the list of partials
Update a partial
Link to this section Functions
Link to this function
create_partial(partial_attrs)
View Source
create_partial(StrawHat.Mailer.Schema.Partial.partial_attrs()) :: {:ok, StrawHat.Mailer.Schema.Partial.t()} | {:error, Ecto.Changeset.t()}
Create a partial.
Link to this function
destroy_partial(partial)
View Source
destroy_partial(StrawHat.Mailer.Schema.Partial.t()) :: {:ok, StrawHat.Mailer.Schema.Partial.t()} | {:error, Ecto.Changeset.t()}
Destroy a partial.
Link to this function
find_partial(partial_id)
View Source
find_partial(String.t()) :: {:ok, StrawHat.Mailer.Schema.Partial.t()} | {:error, StrawHat.Error.t()}
Get a partial by id
.
Link to this function
get_owner_partials(owner_id, pagination \\ [])
View Source
get_owner_partials(String.t(), Scrivener.Config.t()) :: Scrivener.Page.t()
Get the list of partials by owner_id
.
Link to this function
get_partial(partial_id)
View Source
get_partial(String.t()) :: StrawHat.Mailer.Schema.Partial.t() | nil | no_return()
Get a partial by id
.
Link to this function
get_partials(pagination \\ [])
View Source
get_partials(Scrivener.Config.t()) :: Scrivener.Page.t()
Get the list of partials.
Link to this function
update_partial(partial, partial_attrs)
View Source
update_partial( StrawHat.Mailer.Schema.Partial.t(), StrawHat.Mailer.Schema.Partial.partial_attrs() ) :: {:ok, StrawHat.Mailer.Schema.Partial.t()} | {:error, Ecto.Changeset.t()}
Update a partial.