Class: DNSimple::Commands::DescribeUser
- Inherits:
-
Object
- Object
- DNSimple::Commands::DescribeUser
- 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, ={}) 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.login_count}" puts "\tFailed logins: #{user.failed_login_count}" puts "\tDomains in account: #{user.domain_count}" puts "\tDomains allowed: #{user.domain_limit}" end |