| Class | ActiveLdap::Ldif::ModifyRecord |
| In: |
lib/active_ldap/ldif.rb
|
| Parent: | ChangeRecord |
| operations | [R] |
# File lib/active_ldap/ldif.rb, line 838
838: def initialize(dn, controls=[], operations=[])
839: super(dn, {}, controls, "modify")
840: @operations = operations
841: end
# File lib/active_ldap/ldif.rb, line 847
847: def <<(operation)
848: @operations << operation
849: end
# File lib/active_ldap/ldif.rb, line 856
856: def ==(other)
857: super(other) and @operations == other.operations
858: end
# File lib/active_ldap/ldif.rb, line 851
851: def add_operation(type, attribute, options, attributes)
852: klass = self.class.const_get("#{type.to_s.capitalize}Operation")
853: self << klass.new(attribute, options, attributes)
854: end
# File lib/active_ldap/ldif.rb, line 843
843: def each(&block)
844: @operations.each(&block)
845: end