View Source Eakins.UseCases.UpdateSchemaImage (eakins v0.0.1)

Updates one of the images in a schema's image map

Link to this section Summary

Link to this section Types

@type t() :: %Eakins.UseCases.UpdateSchemaImage{
  container_name: term(),
  id: term(),
  image_key: term(),
  plug_upload: term()
}

Link to this section Functions

Link to this function

call(uploaded_image, schema)

View Source
@spec call(t(), Eakins.Schema.t()) ::
  {:ok, Eakins.Schema.t()} | {:error, Ecto.Changeset.t()}
Link to this function

new(plug_upload, container_name, image_key)

View Source
@spec new(Plug.Upload.t(), String.t(), Eakins.Images.key()) :: t()