Module: ROM::LDAP::Types
- Includes:
- Types
- Defined in:
- lib/rom/ldap/types.rb
Constant Summary collapse
- URI =
Protocol ldap(s) only
Strict::String.constrained(format: LDAPURI_REGEX)
- Filter =
Something in parentheses
Strict::String.constrained(format: FILTER_REGEX)
- DN =
Strict::String.constrained(format: DN_REGEX)
- Direction =
Strict::Symbol.constrained(included_in: i[asc desc])
- Scope =
Strict::Integer.constrained(included_in: SCOPES)
- Deref =
Strict::Integer.constrained(included_in: DEREF_ALL)
- Abstract =
Abstraction of LDAP constructors and operators
Strict::Symbol.constrained(included_in: ABSTRACTS)
- Field =
Compatible filter fields (formatters may symbolise)
Strict::String | Strict::Symbol
- Value =
Compatible filter values (including wildcard abstraction)
Strict::String | Strict::Integer | Strict::Float | Strict::Symbol.constrained(included_in: i[wildcard])
- Media =
Constructor(String, ->(v) { Functions[:mime_type].call(v[0]) })
- Address =
1.3.6.1.4.1.1466.115.121.1.41
A special format which uses UTF-8 encoding of ISO-10646 (Unicode) separated by '$' used for printable labels or other output. DOES allow extended characters e.g. Constructor(Array, ->(v) { v.split('$').map(&:strip) })
- String =
Constructor(String, ->(v) { Functions[:stringify].call(v[0]) })
- Integer =
Constructor(Integer, ->(v) { Functions[:map_to_integers][v][0] })
- Symbol =
Constructor(Symbol, ->(v) { Functions[:map_to_symbols][v][0] })
- Time =
Constructor(Time, ->(v) { Functions[:map_to_times][v][0] })
- Bool =
Constructor(Bool, ->(v) { Functions[:map_to_booleans][v][0] })
- Binary =
Constructor(String, ->(v) { Functions[:map_to_base64][v][0] }).(binary: true)
- Strings =
Constructor(Array, Functions[:stringify])
- Integers =
Constructor(Array, Functions[:map_to_integers])
- Symbols =
Constructor(Array, Functions[:map_to_symbols])
- Times =
Constructor(Array, Functions[:map_to_times])
- Bools =
Constructor(Array, Functions[:map_to_booleans])
- Binaries =
Constructor(Array, Functions[:map_to_base64]).(binary: true)