Class: DNSimple::Commands::ListContacts

Inherits:
Object
  • Object
show all
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, options={})
  contacts = Contact.all
  puts "Found #{contacts.length} contacts:"
  contacts.each do |contact|
    puts "\t#{contact.name} (id:#{contact.id})"
  end
end