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

Methods included from GetTextSupport

included

Constructor Details

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

Returns a new instance of ModifyNameRecord.



786
787
788
789
790
791
792
# File 'lib/active_ldap/ldif.rb', line 786

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.



785
786
787
# File 'lib/active_ldap/ldif.rb', line 785

def new_rdn
  @new_rdn
end

#new_superiorObject (readonly)

Returns the value of attribute new_superior.



785
786
787
# File 'lib/active_ldap/ldif.rb', line 785

def new_superior
  @new_superior
end

Instance Method Details

#delete_old_rdn?Boolean

Returns:

  • (Boolean)


794
795
796
# File 'lib/active_ldap/ldif.rb', line 794

def delete_old_rdn?
  @delete_old_rdn
end