Class | ActiveLdap::Ldif::ModifyRecord |
In: |
lib/active_ldap/ldif.rb
|
Parent: | ChangeRecord |
operations | [R] |
# File lib/active_ldap/ldif.rb, line 810 810: def initialize(dn, controls=[], operations=[]) 811: super(dn, {}, controls, "modify") 812: @operations = operations 813: end
# File lib/active_ldap/ldif.rb, line 819 819: def <<(operation) 820: @operations << operation 821: end
# File lib/active_ldap/ldif.rb, line 828 828: def ==(other) 829: super(other) and @operations == other.operations 830: end
# File lib/active_ldap/ldif.rb, line 823 823: def add_operation(type, attribute, options, attributes) 824: klass = self.class.const_get("#{type.to_s.capitalize}Operation") 825: self << klass.new(attribute, options, attributes) 826: end
# File lib/active_ldap/ldif.rb, line 815 815: def each(&block) 816: @operations.each(&block) 817: end