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