cereal v1.3.2 Cereal.Formatter behaviour View Source

Formats the base entities given the :formatter specified in the config. Defaults to the Attributes formatter.

Link to this section Summary

Callbacks

Given a base entity, format and returns a map or a list

Link to this section Functions

Link to this function

format(base)

View Source
format(Cereal.Builder.Base.t() | Cereal.Builders.Errors.t()) :: map() | list()

Link to this section Callbacks

Link to this callback

format(arg1)

View Source
format(Cereal.Builder.Base.t() | Cereal.Builder.Errors.t()) ::
  Map.t() | List.t()

Given a base entity, format and returns a map or a list