paddle v0.1.1 Paddle.Class.Helper
A helper module to help generate paddle classes.
Example:
Paddle.Class.Helper.gen_class MyApp.Room,
fields: [:commonName, :roomNumber, :description, :seeAlso, :telephoneNumber],
unique_identifier: :commonName,
object_classes: ["room"],
required_attributes: [:commonName],
location: "ou=Rooms"
The available options are all function names defined and documented
in the Paddle.Class
protocol, plus the :fields
option which
defines all the available fields for the given class.
Please note that using the :generators
option here is discouraged
as generators should be inside the module and not elsewhere. Unless
you are sure what you are doing is elegant enough, you should define the
module yourself instead of using this macro with the :generators
option
(see the Paddle.Class
and the source of this macro for guidelines).
Summary
Functions
Generate a Paddle class represented as a struct with the name class_name
,
and the options options
(see the module toplevel documentation)