View Source Claper.Presentations (Claper v1.4.0)

The Presentations context.

Link to this section Summary

Link to this section Functions

Link to this function

create_presentation_file(attrs \\ %{})

View Source

Creates a presentation_files.

examples

Examples

iex> create_presentation_file(%{field: value})
{:ok, %PresentationFile{}}

iex> create_presentation_file(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function

create_presentation_state(attrs \\ %{})

View Source

Creates a presentation_state.

examples

Examples

iex> create_presentation_state(%{field: value})
{:ok, %PresentationState{}}

iex> create_presentation_state(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function

get_presentation_file!(id, preload \\ [])

View Source

Gets a single presentation_files.

Raises Ecto.NoResultsError if the Presentation files does not exist.

examples

Examples

iex> get_presentation_file!(123)
%PresentationFile{}

iex> get_presentation_file!(456)
** (Ecto.NoResultsError)
Link to this function

get_presentation_file_by_hash!(hash)

View Source
Link to this function

subscribe(presentation_file_id)

View Source
Link to this function

update_presentation_file(presentation_file, attrs)

View Source

Updates a presentation_files.

examples

Examples

iex> update_presentation_file(presentation_file, %{field: new_value})
{:ok, %PresentationFile{}}

iex> update_presentation_file(presentation_file, %{field: bad_value})
{:error, %Ecto.Changeset{}}
Link to this function

update_presentation_state(presentation_state, attrs)

View Source

Updates a presentation_state.

examples

Examples

iex> update_presentation_state(presentation_state, %{field: new_value})
{:ok, %PresentationState{}}

iex> update_presentation_state(presentation_state, %{field: bad_value})
{:error, %Ecto.Changeset{}}