Class | ActiveLdap::Ldif::Record |
In: |
lib/active_ldap/ldif.rb
|
Parent: | Object |
attributes | [R] | |
dn | [R] |
# File lib/active_ldap/ldif.rb, line 632 632: def initialize(dn, attributes) 633: @dn = dn 634: @attributes = attributes 635: end
# File lib/active_ldap/ldif.rb, line 647 647: def ==(other) 648: other.is_a?(self.class) and 649: @dn == other.dn and 650: Attributes.normalize(@attributes) == 651: Attributes.normalize(other.attributes) 652: end
# File lib/active_ldap/ldif.rb, line 637 637: def to_hash 638: attributes.merge({"dn" => dn}) 639: end
# File lib/active_ldap/ldif.rb, line 641 641: def to_s 642: result = to_s_prelude 643: result << to_s_content 644: result 645: end
# File lib/active_ldap/ldif.rb, line 659 659: def to_s_content 660: Attributes.encode(@attributes) 661: end