Module: ActiveLdap::Operations::ClassOnlyDelete — activeldap - ActiveLdap

Module: ActiveLdap::Operations::ClassOnlyDelete

Defined in:
lib/active_ldap/operations.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) delete(targets, options = {})



548
549
550
551
552
553
554
# File 'lib/active_ldap/operations.rb', line 548

def delete(targets, options={})
  targets = [targets] unless targets.is_a?(Array)
  targets = targets.collect do |target|
    ensure_dn_attribute(ensure_base(target))
  end
  delete_entry(targets, options)
end

- (Object) destroy(targets, options = {})



541
542
543
544
545
546
# File 'lib/active_ldap/operations.rb', line 541

def destroy(targets, options={})
  targets = [targets] unless targets.is_a?(Array)
  targets.each do |target|
    find(target, options).destroy
  end
end