Class: ActiveLdap::Schema::ObjectClass

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

Instance Attribute Summary collapse

Attributes inherited from Entry

#aliases, #description, #id, #name

Instance Method Summary collapse

Methods inherited from Entry

#<=>, #eql?, #hash, #to_param

Constructor Details

#initialize(name, schema) ⇒ ObjectClass

Returns a new instance of ObjectClass.



620
621
622
# File 'lib/active_ldap/schema.rb', line 620

def initialize(name, schema)
  super(name, schema, "objectClasses")
end

Instance Attribute Details

#super_classesObject (readonly)

Returns the value of attribute super_classes.



619
620
621
# File 'lib/active_ldap/schema.rb', line 619

def super_classes
  @super_classes
end

Instance Method Details

#may(include_super_class = true) ⇒ Object



636
637
638
639
640
641
642
# File 'lib/active_ldap/schema.rb', line 636

def may(include_super_class=true)
  if include_super_class
    @all_may
  else
    @may
  end
end

#must(include_super_class = true) ⇒ Object



628
629
630
631
632
633
634
# File 'lib/active_ldap/schema.rb', line 628

def must(include_super_class=true)
  if include_super_class
    @all_must
  else
    @must
  end
end

#super_class?(object_class) ⇒ Boolean

Returns:

  • (Boolean)


624
625
626
# File 'lib/active_ldap/schema.rb', line 624

def super_class?(object_class)
  @super_classes.include?(object_class)
end