Sha256: b06b36de18dc46f9824dc75888ca6146a6d983b77cf04f247543be574a0256a5
Contents?: true
Size: 980 Bytes
Versions: 10
Compression:
Stored size: 980 Bytes
Contents
module DNSimple module Commands class ContactDescribe def execute(args, options = {}) id = args.shift contact = Contact.find(id) puts "Contact: #{contact.name}:" puts "\tID: #{contact.id}" puts "\tFirst Name: #{contact.first_name}" puts "\tLast Name: #{contact.last_name}" puts "\tOrganization Name: #{contact.organization_name}" if contact.organization_name puts "\tJob Title: #{contact.job_title}" if contact.job_title puts "\tAddress 1: #{contact.address1}" puts "\tAddress 2: #{contact.address2}" puts "\tCity: #{contact.city}" puts "\tState or Province: #{contact.state_province}" puts "\tPostal Code: #{contact.postal_code}" puts "\tCountry: #{contact.country}" puts "\tEmail: #{contact.email_address}" puts "\tPhone: #{contact.phone}" puts "\tPhone Ext: #{contact.phone_ext}" if contact.phone_ext end end end end
Version data entries
10 entries across 10 versions & 1 rubygems