View Source DataMapper behaviour (DataMapper v0.2.1)

Define behaviours for a data-mapping module.

Summary

Callbacks

@callback map(input :: any()) :: any()
@callback map(input :: any(), mappings :: map()) :: map()
@callback map_field({key :: atom(), value :: any()}) :: value :: any()
@callback map_list(input :: any()) :: [map()]
Link to this callback

post_map_list_transform(any)

View Source
@callback post_map_list_transform(any()) :: [map()]
@callback post_map_transform(any()) :: any()
Link to this callback

pre_map_list_transform(any)

View Source
@callback pre_map_list_transform(any()) :: any()
@callback pre_map_transform(any()) :: any()

Functions