class ActiveLdap::Ldif::ModifyRecord::Operation

def ==(other)

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

def add?

def add?
  @type == "add"
end

def delete?

def delete?
  @type == "delete"
end

def full_attribute_name

def full_attribute_name
  [@attribute, *@options].join(";")
end

def initialize(type, attribute, options, attributes)

def initialize(type, attribute, options, attributes)
  @type = type
  @attribute = attribute
  @options = options
  @attributes = attributes
end

def replace?

def replace?
  @type == "replace"
end

def to_s

def to_s
  Attribute.encode(@type, full_attribute_name) +
    Attributes.encode(@attributes)
end