Class: DNSimple::Commands::DeleteContact
- Inherits:
-
Object
- Object
- DNSimple::Commands::DeleteContact
- Defined in:
- lib/dnsimple/commands/delete_contact.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dnsimple/commands/delete_contact.rb', line 4 def execute(args, ={}) id = args.shift contact = Contact.find(id) contact.delete puts "Deleted #{contact.name} (id: #{contact.id})" end |