Class: ActiveLdap::Schema::Attribute

Inherits:
Entry
  • Object
show all
Defined in:
lib/active_ldap/schema.rb

Instance Attribute Summary

Attributes inherited from Entry

#aliases, #description, #id, #name

Instance Method Summary collapse

Methods inherited from Entry

#<=>, #eql?, #hash

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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


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

Returns:

  • (Boolean)


313
314
315
# File 'lib/active_ldap/schema.rb', line 313

def single_value?
  @single_value
end