class ActiveLdap::Ldif::ModifyRecord
Attributes
Public Class Methods
Source
# File lib/active_ldap/ldif.rb, line 844 def initialize(dn, controls=[], operations=[]) super(dn, {}, controls, "modify") @operations = operations end
Calls superclass method
ActiveLdap::Ldif::ChangeRecord::new
Public Instance Methods
Source
# File lib/active_ldap/ldif.rb, line 853 def <<(operation) @operations << operation end
Source
# File lib/active_ldap/ldif.rb, line 862 def ==(other) super(other) and @operations == other.operations end
Calls superclass method
ActiveLdap::Ldif::ChangeRecord#==
Source
# File lib/active_ldap/ldif.rb, line 857 def add_operation(type, attribute, options, attributes) klass = self.class.const_get("#{type.to_s.capitalize}Operation") self << klass.new(attribute, options, attributes) end
Source
# File lib/active_ldap/ldif.rb, line 849 def each(&block) @operations.each(&block) end
Private Instance Methods
Source
# File lib/active_ldap/ldif.rb, line 867 def to_s_content result = super return result if @operations.empty? @operations.collect do |operation| result << "#{operation}-\n" end result end
Calls superclass method
ActiveLdap::Ldif::ChangeRecord#to_s_content