# File lib/active_ldap/ldif.rb, line 872 def initialize(type, attribute, options, attributes) @type = type @attribute = attribute @options = options @attributes = attributes end
# File lib/active_ldap/ldif.rb, line 900 def ==(other) other.is_a?(self.class) and @type == other.type and full_attribute_name == other.full_attribute_name and Attributes.normalize(@attributes) == Attributes.normalize(other.attributes) end
# File lib/active_ldap/ldif.rb, line 883 def add? @type == "add" end
# File lib/active_ldap/ldif.rb, line 887 def delete? @type == "delete" end
# File lib/active_ldap/ldif.rb, line 879 def full_attribute_name [@attribute, *@options].join(";") end
# File lib/active_ldap/ldif.rb, line 891 def replace? @type == "replace" end
# File lib/active_ldap/ldif.rb, line 895 def to_s Attribute.encode(@type, full_attribute_name) + Attributes.encode(@attributes) end