Class: ActiveLdap::Ldif::ModifyNameRecord — activeldap - ActiveLdap

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

- (ModifyNameRecord) initialize(dn, controls, change_type, new_rdn, delete_old_rdn, new_superior)

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

- (Object) new_rdn (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

- (Object) new_superior (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

- (Boolean) delete_old_rdn?

Returns:

  • (Boolean)


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

def delete_old_rdn?
  @delete_old_rdn
end