View Source Factoid behaviour (factoid v0.1.0)

Documentation for Factoid.

Link to this section Summary

Callbacks

Builds a record.

Builds a record with attributes.

Functions

Drops all associations in the record.

Link to this section Callbacks

Link to this callback

build(factory_name)

View Source (optional)
@callback build(factory_name()) :: term()

Builds a record.

Link to this callback

build(factory_name, attrs)

View Source
@callback build(factory_name(), attrs()) :: term()

Builds a record with attributes.

Link to this section Functions

Link to this function

drop_associations(schema)

View Source
@spec drop_associations(record()) :: record()

Drops all associations in the record.