Class: ActiveLdap::Schema::ObjectClass
- Defined in:
- lib/active_ldap/schema.rb
Instance Attribute Summary collapse
-
#super_classes ⇒ Object
readonly
Returns the value of attribute super_classes.
Attributes inherited from Entry
#aliases, #description, #id, #name
Instance Method Summary collapse
-
#initialize(name, schema) ⇒ ObjectClass
constructor
A new instance of ObjectClass.
- #may(include_super_class = true) ⇒ Object
- #must(include_super_class = true) ⇒ Object
- #super_class?(object_class) ⇒ Boolean
Methods inherited from Entry
Constructor Details
#initialize(name, schema) ⇒ ObjectClass
Returns a new instance of ObjectClass.
622 623 624 |
# File 'lib/active_ldap/schema.rb', line 622 def initialize(name, schema) super(name, schema, "objectClasses") end |
Instance Attribute Details
#super_classes ⇒ Object (readonly)
Returns the value of attribute super_classes.
621 622 623 |
# File 'lib/active_ldap/schema.rb', line 621 def super_classes @super_classes end |
Instance Method Details
#may(include_super_class = true) ⇒ Object
638 639 640 641 642 643 644 |
# File 'lib/active_ldap/schema.rb', line 638 def may(include_super_class=true) if include_super_class @all_may else @may end end |
#must(include_super_class = true) ⇒ Object
630 631 632 633 634 635 636 |
# File 'lib/active_ldap/schema.rb', line 630 def must(include_super_class=true) if include_super_class @all_must else @must end end |
#super_class?(object_class) ⇒ Boolean
626 627 628 |
# File 'lib/active_ldap/schema.rb', line 626 def super_class?(object_class) @super_classes.include?(object_class) end |