Parent

Included Modules

Class Index [+]

Quicksearch

ActiveLdap::Ldif::Record

Attributes

dn[R]
attributes[R]

Public Class Methods

new(dn, attributes) click to toggle source
     # File lib/active_ldap/ldif.rb, line 632
632:       def initialize(dn, attributes)
633:         @dn = dn
634:         @attributes = attributes
635:       end

Public Instance Methods

==(other) click to toggle source
     # 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
to_hash() click to toggle source
     # File lib/active_ldap/ldif.rb, line 637
637:       def to_hash
638:         attributes.merge({"dn" => dn})
639:       end
to_s() click to toggle source
     # 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

Private Instance Methods

to_s_content() click to toggle source
     # File lib/active_ldap/ldif.rb, line 659
659:       def to_s_content
660:         Attributes.encode(@attributes)
661:       end
to_s_prelude() click to toggle source
     # File lib/active_ldap/ldif.rb, line 655
655:       def to_s_prelude
656:         Attribute.encode("dn", dn)
657:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.