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 model
  • kinds/0: returns list of supported kinds, including imported ones
  • mixin?/1: check a mixin is part of this model
  • mixins/0: returns list of availables mixins
  • mixin/1: add a user mixin
  • del_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

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.

Link to this macro kind(arg, args \\ [], do_block \\ nil) View Source (macro)

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
Link to this macro mixin(arg, args \\ [], do_block \\ nil) View Source (macro)

Defines a new mixin