Class | ActiveLdap::Ldif::Record |
In: |
lib/active_ldap/ldif.rb
|
Parent: | Object |
attributes | [R] | |
dn | [R] |
# File lib/active_ldap/ldif.rb, line 604 604: def initialize(dn, attributes) 605: @dn = dn 606: @attributes = attributes 607: end
# File lib/active_ldap/ldif.rb, line 619 619: def ==(other) 620: other.is_a?(self.class) and 621: @dn == other.dn and 622: Attributes.normalize(@attributes) == 623: Attributes.normalize(other.attributes) 624: end
# File lib/active_ldap/ldif.rb, line 609 609: def to_hash 610: attributes.merge({"dn" => dn}) 611: end
# File lib/active_ldap/ldif.rb, line 613 613: def to_s 614: result = to_s_prelude 615: result << to_s_content 616: result 617: end
# File lib/active_ldap/ldif.rb, line 631 631: def to_s_content 632: Attributes.encode(@attributes) 633: end