Glific v0.3.1 Glific.Tags.TemplateTag View Source

A pipe for managing the template tags

Link to this section Summary

Functions

Standard changeset pattern we use for all data types

Link to this section Types

Specs

t() :: %Glific.Tags.TemplateTag{
  __meta__: Ecto.Schema.Metadata.t(),
  id: non_neg_integer() | nil,
  tag: Glific.Tags.Tag.t() | Ecto.Association.NotLoaded.t() | nil,
  tag_id: term(),
  template:
    Glific.Templates.SessionTemplate.t() | Ecto.Association.NotLoaded.t() | nil,
  template_id: term(),
  value: String.t() | nil
}

Link to this section Functions

Link to this function

changeset(template, attrs)

View Source

Specs

changeset(t(), map()) :: Ecto.Changeset.t()

Standard changeset pattern we use for all data types