Class ActiveLdap::Ldif
In: lib/active_ldap/ldif.rb
Parent: Object
Error AttributeAssignmentError AdapterNotSpecified OperationNotPermitted RequiredObjectClassMissed ConnectionError RequiredAttributeMissed LdifInvalid LdapError DistinguishedNameNotSetError EntryNotFound SaveError StrongAuthenticationRequired NotImplemented AdapterNotFound TimeoutError AuthenticationError AttributeValueInvalid EntryNotSaved DistinguishedNameInputInvalid EntryAlreadyExist ObjectClassError UnknownAttribute EntryInvalid DeleteError ConfigurationError ConnectionNotSetup DistinguishedNameInvalid Schema\n[lib/active_ldap/schema.rb\nlib/active_ldap/schema/syntaxes.rb] Base DistinguishedName Reloadable::Deprecated Reloadable::Subclasses Enumerable Ldif Collection EntryAttribute StandardError Children HasMany HasManyWrap BelongsToMany Proxy BelongsTo Normalizable Common Find LDIF Delete Update 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 Xml JndiConnection lib/active_ldap/distinguished_name.rb lib/active_ldap/base.rb lib/active_ldap/xml.rb lib/active_ldap/schema.rb lib/active_ldap/entry_attribute.rb lib/active_ldap/ldif.rb lib/active_ldap/ldap_error.rb LdapBenchmarking ActionController ClassMethods Associations Compatible ClassMethods Tree Acts 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 Populate Command ClassMethods Normalizable Attributes Escape GetTextSupport Update Common ModifyNameRecordLoadable AddOperationModifiable DeleteOperationModifiable ReplaceOperationModifiable ModifyRecordLoadable DeleteRecordLoadable AddRecordLoadable ContentRecordLoadable LDIF Delete Find Operations ClassMethods Configuration lib/active_ldap/get_text/parser.rb GetText ClassMethods Callbacks ClassMethods ObjectClass 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 Salt UserPassword ClassMethods Connection ActiveLdap dot/m_45_0.png

Methods

<<   ==   each   new   parse   to_s  

Included Modules

Enumerable

Classes and Modules

Module ActiveLdap::Ldif::Attribute
Module ActiveLdap::Ldif::Attributes
Class ActiveLdap::Ldif::AddRecord
Class ActiveLdap::Ldif::ChangeRecord
Class ActiveLdap::Ldif::ContentRecord
Class ActiveLdap::Ldif::DeleteRecord
Class ActiveLdap::Ldif::ModifyDNRecord
Class ActiveLdap::Ldif::ModifyNameRecord
Class ActiveLdap::Ldif::ModifyRDNRecord
Class ActiveLdap::Ldif::ModifyRecord
Class ActiveLdap::Ldif::Parser
Class ActiveLdap::Ldif::Record
Class ActiveLdap::Ldif::Scanner

Attributes

records  [R] 
version  [R] 

Public Class methods

[Source]

     # File lib/active_ldap/ldif.rb, line 602
602:     def initialize(records=[])
603:       @version = 1
604:       @records = records
605:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 594
594:       def parse(ldif)
595:         Parser.new(ldif).parse
596:       end

Public Instance methods

[Source]

     # File lib/active_ldap/ldif.rb, line 607
607:     def <<(record)
608:       @records << record
609:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 623
623:     def ==(other)
624:       other.is_a?(self.class) and
625:         @version == other.version and @records == other.records
626:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 611
611:     def each(&block)
612:       @records.each(&block)
613:     end

[Source]

     # File lib/active_ldap/ldif.rb, line 615
615:     def to_s
616:       result = "version: #{@version}\n"
617:       result << @records.collect do |record|
618:         record.to_s
619:       end.join("\n")
620:       result
621:     end

[Validate]