Class: ActiveLdap::Schema::Attribute
- Defined in:
- lib/active_ldap/schema.rb
Instance Attribute Summary
Attributes inherited from Entry
#aliases, #description, #id, #name
Instance Method Summary collapse
-
#binary? ⇒ Boolean
binary?.
-
#binary_required? ⇒ Boolean
binary_required?.
-
#initialize(name, schema) ⇒ Attribute
constructor
A new instance of Attribute.
-
#read_only? ⇒ Boolean
read_only?.
-
#single_value? ⇒ Boolean
single_value?.
Methods inherited from Entry
Constructor Details
#initialize(name, schema) ⇒ Attribute
Returns a new instance of Attribute.
296 297 298 |
# File 'lib/active_ldap/schema.rb', line 296 def initialize(name, schema) super(name, schema, "attributeTypes") end |
Instance Method Details
#binary? ⇒ Boolean
binary?
Returns true if the given attribute’s syntax is X-NOT-HUMAN-READABLE or X-BINARY-TRANSFER-REQUIRED
321 322 323 |
# File 'lib/active_ldap/schema.rb', line 321 def binary? @binary end |
#binary_required? ⇒ Boolean
binary_required?
Returns true if the value MUST be transferred in binary
328 329 330 |
# File 'lib/active_ldap/schema.rb', line 328 def binary_required? @binary_required end |
#read_only? ⇒ Boolean
read_only?
Returns true if an attribute is read-only NO-USER-MODIFICATION
304 305 306 |
# File 'lib/active_ldap/schema.rb', line 304 def read_only? @read_only end |
#single_value? ⇒ Boolean
single_value?
Returns true if an attribute can only have one value defined SINGLE-VALUE
313 314 315 |
# File 'lib/active_ldap/schema.rb', line 313 def single_value? @single_value end |