class ActiveLdap::Schema::Entry

Attributes

aliases[R]
description[R]
id[R]
name[R]

Public Class Methods

new(name, schema, group) click to toggle source
# File lib/active_ldap/schema.rb, line 287
def initialize(name, schema, group)
  @schema = schema
  @name, *@aliases = attribute("NAME", name)
  @name ||= name
  @id = @schema.resolve_name(group, @name)
  collect_info
  @schema = nil
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/active_ldap/schema.rb, line 306
def <=>(other)
  name <=> other.name
end
eql?(other) click to toggle source
# File lib/active_ldap/schema.rb, line 296
def eql?(other)
  self.class == other.class and
    (id == other.id or
     (id.nil? and other.nil? and name == other.name))
end
hash() click to toggle source
# File lib/active_ldap/schema.rb, line 302
def hash
  id.nil? ? name.hash : id.hash
end
to_param() click to toggle source
# File lib/active_ldap/schema.rb, line 310
def to_param
  name
end