class ActiveLdap::Ldif::Record

def ==(other)

def ==(other)
  other.is_a?(self.class) and
    @dn == other.dn and
    Attributes.normalize(@attributes) ==
    Attributes.normalize(other.attributes)
end

def initialize(dn, attributes)

def initialize(dn, attributes)
  @dn = dn
  @attributes = attributes
end

def to_hash

def to_hash
  attributes.merge({"dn" => dn})
end

def to_s

def to_s
  result = to_s_prelude
  result << to_s_content
  result
end

def to_s_content

def to_s_content
  Attributes.encode(@attributes)
end

def to_s_prelude

def to_s_prelude
  Attribute.encode("dn", dn)
end