# File lib/active_ldap/ldif.rb, line 669 def initialize(dn, attributes, controls, change_type) super(dn, attributes) @controls = controls @change_type = change_type end
# File lib/active_ldap/ldif.rb, line 695 def ==(other) super(other) and @controls = other.controls and @change_type == other.change_type end
# File lib/active_ldap/ldif.rb, line 675 def add? @change_type == "add" end
# File lib/active_ldap/ldif.rb, line 679 def delete? @change_type == "delete" end
# File lib/active_ldap/ldif.rb, line 683 def modify? @change_type == "modify" end
# File lib/active_ldap/ldif.rb, line 687 def modify_dn? @change_type == "moddn" end
# File lib/active_ldap/ldif.rb, line 691 def modify_rdn? @change_type == "modrdn" end
# File lib/active_ldap/ldif.rb, line 710 def to_s_content result = "changetype: #{@change_type}\n" result << super result end
# File lib/active_ldap/ldif.rb, line 702 def to_s_prelude result = super @controls.each do |control| result << control.to_s end result end