class ActiveLdap::Ldif::Record
Attributes
Public Class Methods
Source
# File lib/active_ldap/ldif.rb, line 638 def initialize(dn, attributes) @dn = dn @attributes = attributes end
Public Instance Methods
Source
# File lib/active_ldap/ldif.rb, line 653 def ==(other) other.is_a?(self.class) and @dn == other.dn and Attributes.normalize(@attributes) == Attributes.normalize(other.attributes) end
Source
# File lib/active_ldap/ldif.rb, line 643 def to_hash attributes.merge({"dn" => dn}) end
Source
# File lib/active_ldap/ldif.rb, line 647 def to_s result = to_s_prelude result << to_s_content result end
Private Instance Methods
Source
# File lib/active_ldap/ldif.rb, line 665 def to_s_content Attributes.encode(@attributes) end
Source
# File lib/active_ldap/ldif.rb, line 661 def to_s_prelude Attribute.encode("dn", dn) end