ISN v1.0.2 ISN.ISMN

Definition for the ISN.ISMN module.

How to use this in an Ecto.Model

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

  schema "books" do
    field :ismn, ISN.ISMN
    # other fields
  end
end

Summary

Functions

Callback implementation for c:Ecto.Type.cast/1

Callback implementation for c:Ecto.Type.dump/1

Callback implementation for c:Ecto.Type.load/1

Callback implementation for c:Ecto.Type.type/0

Functions

cast(isn)

Callback implementation for c:Ecto.Type.cast/1.

dump(isn)

Callback implementation for c:Ecto.Type.dump/1.

load(isn)

Callback implementation for c:Ecto.Type.load/1.

type()

Callback implementation for c:Ecto.Type.type/0.