Module: ActiveLdap::Operations::ClassOnlyDelete
- Defined in:
- lib/active_ldap/operations.rb
Instance Method Summary collapse
Instance Method Details
#delete(targets, options = {}) ⇒ Object
551 552 553 554 555 556 557 |
# File 'lib/active_ldap/operations.rb', line 551 def delete(targets, ={}) targets = [targets] unless targets.is_a?(Array) targets = targets.collect do |target| ensure_dn_attribute(ensure_base(target)) end delete_entry(targets, ) end |
#destroy(targets, options = {}) ⇒ Object
544 545 546 547 548 549 |
# File 'lib/active_ldap/operations.rb', line 544 def destroy(targets, ={}) targets = [targets] unless targets.is_a?(Array) targets.each do |target| find(target, ).destroy end end |