View Source Claper.Presentations (Claper v1.4.0)
The Presentations context.
Link to this section Summary
Functions
Creates a presentation_files.
Creates a presentation_state.
Gets a single presentation_files.
Updates a presentation_files.
Updates a presentation_state.
Link to this section Functions
Creates a presentation_files.
examples
Examples
iex> create_presentation_file(%{field: value})
{:ok, %PresentationFile{}}
iex> create_presentation_file(%{field: bad_value})
{:error, %Ecto.Changeset{}}
Creates a presentation_state.
examples
Examples
iex> create_presentation_state(%{field: value})
{:ok, %PresentationState{}}
iex> create_presentation_state(%{field: bad_value})
{:error, %Ecto.Changeset{}}
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)
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{}}
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{}}