Class: DNSimple::Commands::DescribeUser

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

Instance Method Summary collapse

Instance Method Details

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



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

def execute(args, options={})
  puts "Connecting to #{Client.base_uri}"
  user = User.me
  puts "User details:"
  puts "\tID:#{user.id}"
  puts "\tCreated: #{user.created_at}"
  puts "\tEmail: #{user.email}"
  puts "\tSuccessful logins: #{user.}"
  puts "\tFailed logins: #{user.}"
  puts "\tDomains in account: #{user.domain_count}"
  puts "\tDomains allowed: #{user.domain_limit}"
end