exocci v0.1.0 OCCI.Model View Source
Use this module to define categories for your application.
Defines the following functions for manipulating categories:
kind?/1
: check a kind is part of this modelkinds/0
: returns list of supported kinds, including imported onesmixin?/1
: check a mixin is part of this modelmixins/0
: returns list of availables mixinsmixin/1
: add a user mixindel_mixin/1
: delete a user mixin
Available macros:
Link to this section Summary
Functions
Import categories from a model. A model is represented by an elixir module
Defines a new kind
Defines a new mixin
Link to this section Functions
Import categories from a model. A model is represented by an elixir module.
OCCI.Model.Core is imported by default in all models.
Defines a new kind
Args:
- parent: category or module kind’s parent
- scheme: if different from model’s scheme
- term: if different from lower-case module name
- title: kind’s description
Defines a new mixin