Class: DNSimple::Commands::DescribeRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/dnsimple/commands/describe_record.rb

Instance Method Summary collapse

Instance Method Details

#execute(args, options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/dnsimple/commands/describe_record.rb', line 4

def execute(args, options={})
  name = args.shift
  id = args.shift
  record = Record.find(name, id)
  puts "Record #{record.fqdn}:"
  puts "\tID: #{record.id}"
  puts "\tTTL: #{record.ttl}"
  puts "\tPrio: #{record.prio}"
  puts "\tContent: #{record.content}"
end