Class ActiveLdap::Ldif::Record
In: lib/active_ldap/ldif.rb
Parent: Object
Error AttributeAssignmentError AdapterNotSpecified OperationNotPermitted RequiredObjectClassMissed ConnectionError RequiredAttributeMissed LdifInvalid DistinguishedNameNotSetError EntryNotFound LdapError SaveError StrongAuthenticationRequired AdapterNotFound ConnectionNotEstablished TimeoutError AuthenticationError AttributeValueInvalid EntryNotSaved DistinguishedNameInputInvalid EntryAlreadyExist ObjectClassError UnknownAttribute EntryInvalid DeleteError ConfigurationError DistinguishedNameInvalid Base DistinguishedName Reloadable::Deprecated Reloadable::Subclasses Enumerable Ldif Collection EntryAttribute StandardError Children HasMany HasManyWrap BelongsToMany Proxy BelongsTo Common Find LDIF Delete Update Normalizable GetText Parser ActiveRecord::Callbacks ActiveRecord::Validations Base\n[lib/active_ldap/adapter/base.rb\nlib/active_ldap/adapter/jndi.rb\nlib/active_ldap/adapter/ldap.rb\nlib/active_ldap/adapter/net_ldap.rb] Jndi Ldap NetLdap GetTextSupport Schema\n[lib/active_ldap/schema.rb\nlib/active_ldap/schema/syntaxes.rb] JndiConnection lib/active_ldap/distinguished_name.rb lib/active_ldap/base.rb lib/active_ldap/schema.rb lib/active_ldap/entry_attribute.rb lib/active_ldap/ldif.rb lib/active_ldap/ldap_error.rb ClassMethods Associations LdapBenchmarking ActionController ClassMethods Tree Acts Populate lib/active_ldap/association/has_many_wrap.rb lib/active_ldap/association/children.rb lib/active_ldap/association/collection.rb lib/active_ldap/association/proxy.rb lib/active_ldap/association/belongs_to_many.rb lib/active_ldap/association/belongs_to.rb lib/active_ldap/association/has_many.rb HasManyUtils Association Command Update Common ModifyNameRecordLoadable AddOperationModifiable DeleteOperationModifiable ReplaceOperationModifiable ModifyRecordLoadable DeleteRecordLoadable AddRecordLoadable ContentRecordLoadable LDIF Delete Find Operations ClassMethods Normalizable Attributes GetTextSupport Escape ClassMethods Configuration ClassMethods ObjectClass lib/active_ldap/get_text/parser.rb GetText ClassMethods Callbacks Validations lib/active_ldap/adapter/jndi_connection.rb lib/active_ldap/adapter/net_ldap.rb lib/active_ldap/adapter/ldap.rb lib/active_ldap/adapter/base.rb lib/active_ldap/adapter/jndi.rb Adapter Helper GetTextFallback ClassMethods HumanReadable ClassMethods Connection Salt UserPassword ActiveLdap dot/m_44_0.png

Methods

==   new   to_hash   to_s   to_s_content   to_s_prelude  

Included Modules

GetTextSupport

Attributes

attributes  [R] 
dn  [R] 

Public Class methods

[Source]

     # File lib/active_ldap/ldif.rb, line 604
604:       def initialize(dn, attributes)
605:         @dn = dn
606:         @attributes = attributes
607:       end

Public Instance methods

[Source]

     # 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

[Source]

     # File lib/active_ldap/ldif.rb, line 609
609:       def to_hash
610:         attributes.merge({"dn" => dn})
611:       end

[Source]

     # 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

Private Instance methods

[Source]

     # File lib/active_ldap/ldif.rb, line 631
631:       def to_s_content
632:         Attributes.encode(@attributes)
633:       end

[Source]

     # File lib/active_ldap/ldif.rb, line 627
627:       def to_s_prelude
628:         Attribute.encode("dn", dn)
629:       end

[Validate]