Class: DNSimple::Commands::ListContacts
- Inherits:
-
Object
- Object
- DNSimple::Commands::ListContacts
- Defined in:
- lib/dnsimple/commands/list_contacts.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/dnsimple/commands/list_contacts.rb', line 4 def execute(args, ={}) contacts = Contact.all puts "Found #{contacts.length} contacts:" contacts.each do |contact| puts "\t#{contact.name} (id:#{contact.id})" end end |