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

Version Path
dnsimple-ruby-1.7.1 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.7.0 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.6.0 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.5.5 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.5.4 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.5.3 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.5.2 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.5.1 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.4.1 lib/dnsimple/commands/contact_describe.rb
dnsimple-ruby-1.4.0 lib/dnsimple/commands/contact_describe.rb