Class: ActiveLdap::Schema::Entry
- Inherits:
-
Object
- Object
- ActiveLdap::Schema::Entry
- Includes:
- Comparable
- Defined in:
- lib/active_ldap/schema.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#aliases ⇒ Object
readonly
Returns the value of attribute aliases.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(name, schema, group) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(name, schema, group) ⇒ Entry
Returns a new instance of Entry.
246 247 248 249 250 251 252 253 |
# File 'lib/active_ldap/schema.rb', line 246 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 |
Instance Attribute Details
#aliases ⇒ Object (readonly)
Returns the value of attribute aliases.
245 246 247 |
# File 'lib/active_ldap/schema.rb', line 245 def aliases @aliases end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
245 246 247 |
# File 'lib/active_ldap/schema.rb', line 245 def description @description end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
245 246 247 |
# File 'lib/active_ldap/schema.rb', line 245 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
245 246 247 |
# File 'lib/active_ldap/schema.rb', line 245 def name @name end |
Instance Method Details
#<=>(other) ⇒ Object
264 265 266 |
# File 'lib/active_ldap/schema.rb', line 264 def <=>(other) name <=> other.name end |
#eql?(other) ⇒ Boolean
255 256 257 258 |
# File 'lib/active_ldap/schema.rb', line 255 def eql?(other) self.class == other.class and id == other.id end |
#hash ⇒ Object
260 261 262 |
# File 'lib/active_ldap/schema.rb', line 260 def hash id.hash end |