Isn.EAN13

Definition for the ean13 module.

How to use this in an Ecto.Model

defmodule MyApp.Book do
  use MyApp.Web, :model

  schema "books" do
    field :ean13, Isn.EAN13
    # other fields
  end
end
Source

Summary

blank?()
cast(isn)

Callback implementation of Ecto.Type.cast/1

dump(isn)

Callback implementation of Ecto.Type.dump/1

load(isn)

Callback implementation of Ecto.Type.load/1

type()

Callback implementation of Ecto.Type.type/0

Functions

blank?()
Source
cast(isn)

Callback implementation of Ecto.Type.cast/1.

Source
dump(isn)

Callback implementation of Ecto.Type.dump/1.

Source
load(isn)

Callback implementation of Ecto.Type.load/1.

Source
type()

Callback implementation of Ecto.Type.type/0.

Source