thesis v0.3.4 Thesis.Backup

Represents a page and page_content backup.

Link to this section Summary

Functions

Changeset for Backup structs

Formats a given Backup with a pretty_date field

Link to this section Types

Link to this type

t()
t() :: %Thesis.Backup{
  __meta__: term(),
  id: any(),
  inserted_at: any(),
  page: term(),
  page_data: any(),
  page_id: integer(),
  page_revision: integer(),
  updated_at: any()
}

Link to this section Functions

Link to this function

changeset(backup, params \\ %{})

Changeset for Backup structs.

Link to this function

with_pretty_datetime(backup)

Formats a given Backup with a pretty_date field.

iex> backup = %Thesis.Backup{ inserted_at: ~N[2017-09-05 22:39:53.732381] } iex> b = Thesis.Backup.with_pretty_datetime(backup) iex> b.pretty_date "9-5-2017 @ 22:39"