Class: ActiveLdap::Schema::ObjectClass — activeldap - ActiveLdap

Class: ActiveLdap::Schema::ObjectClass

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

Constant Summary

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

- (ObjectClass) initialize(name, schema)

Returns a new instance of ObjectClass



648
649
650
# File 'lib/active_ldap/schema.rb', line 648

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

Instance Attribute Details

- (Object) super_classes (readonly)

Returns the value of attribute super_classes



647
648
649
# File 'lib/active_ldap/schema.rb', line 647

def super_classes
  @super_classes
end

Instance Method Details

- (Object) may(include_super_class = true)



664
665
666
667
668
669
670
# File 'lib/active_ldap/schema.rb', line 664

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

- (Object) must(include_super_class = true)



656
657
658
659
660
661
662
# File 'lib/active_ldap/schema.rb', line 656

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

- (Boolean) super_class?(object_class)

Returns:

  • (Boolean)


652
653
654
# File 'lib/active_ldap/schema.rb', line 652

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