Paddle.Attributes (paddle v0.1.4) View Source

Module used internally by Paddle to manipulate / convert LDAP attributes.

Link to this section Summary

Functions

Get the given and the generated attributes of a given class object.

Link to this section Functions

Specs

get(Paddle.Class.t()) ::
  {:ok, map()} | {:error, :missing_required_attributes, [atom()]}

Get the given and the generated attributes of a given class object.

Examples:

iex> Paddle.Attributes.get(%MyApp.PosixGroup{})
{:error, :missing_required_attributes, [:cn]}

iex> Paddle.Attributes.get(%MyApp.PosixGroup{cn: "myGroup"})
{:ok,
 %{cn: "myGroup", description: nil, gidNumber: 4, memberUid: nil,
   objectClass: "posixGroup", userPassword: nil}}