Files

Class/Module Index [+]

Quicksearch

ActiveLdap::Ldif::ChangeRecord

Attributes

change_type[R]
controls[R]

Public Class Methods

new(dn, attributes, controls, change_type) click to toggle source
# File lib/active_ldap/ldif.rb, line 669
def initialize(dn, attributes, controls, change_type)
  super(dn, attributes)
  @controls = controls
  @change_type = change_type
end

Public Instance Methods

==(other) click to toggle source
# File lib/active_ldap/ldif.rb, line 695
def ==(other)
  super(other) and
    @controls = other.controls and
    @change_type == other.change_type
end
add?() click to toggle source
# File lib/active_ldap/ldif.rb, line 675
def add?
  @change_type == "add"
end
delete?() click to toggle source
# File lib/active_ldap/ldif.rb, line 679
def delete?
  @change_type == "delete"
end
modify?() click to toggle source
# File lib/active_ldap/ldif.rb, line 683
def modify?
  @change_type == "modify"
end
modify_dn?() click to toggle source
# File lib/active_ldap/ldif.rb, line 687
def modify_dn?
  @change_type == "moddn"
end
modify_rdn?() click to toggle source
# File lib/active_ldap/ldif.rb, line 691
def modify_rdn?
  @change_type == "modrdn"
end

Private Instance Methods

to_s_content() click to toggle source
# File lib/active_ldap/ldif.rb, line 710
def to_s_content
  result = "changetype: #{@change_type}\n"
  result << super
  result
end
to_s_prelude() click to toggle source
# File lib/active_ldap/ldif.rb, line 702
def to_s_prelude
  result = super
  @controls.each do |control|
    result << control.to_s
  end
  result
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.