Class: ActiveLdap::Ldif::ModifyNameRecord

Inherits:
ChangeRecord show all
Defined in:
lib/active_ldap/ldif.rb

Direct Known Subclasses

ModifyDNRecord, ModifyRDNRecord

Instance Attribute Summary collapse

Attributes inherited from ChangeRecord

#change_type, #controls

Attributes inherited from Record

#attributes, #dn

Instance Method Summary collapse

Methods inherited from ChangeRecord

#==, #add?, #delete?, #modify?, #modify_dn?, #modify_rdn?

Methods inherited from Record

#==, #to_hash, #to_s

Constructor Details

#initialize(dn, controls, change_type, new_rdn, delete_old_rdn, new_superior) ⇒ ModifyNameRecord

Returns a new instance of ModifyNameRecord



792
793
794
795
796
797
798
# File 'lib/active_ldap/ldif.rb', line 792

def initialize(dn, controls, change_type,
               new_rdn, delete_old_rdn, new_superior)
  super(dn, {}, controls, change_type)
  @new_rdn = new_rdn
  @delete_old_rdn = normalize_delete_old_rdn(delete_old_rdn)
  @new_superior = new_superior
end

Instance Attribute Details

#new_rdnObject (readonly)

Returns the value of attribute new_rdn



791
792
793
# File 'lib/active_ldap/ldif.rb', line 791

def new_rdn
  @new_rdn
end

#new_superiorObject (readonly)

Returns the value of attribute new_superior



791
792
793
# File 'lib/active_ldap/ldif.rb', line 791

def new_superior
  @new_superior
end

Instance Method Details

#delete_old_rdn?Boolean

Returns:

  • (Boolean)


800
801
802
# File 'lib/active_ldap/ldif.rb', line 800

def delete_old_rdn?
  @delete_old_rdn
end