Sha256: 027332fe2ed1ffaba0610c380bf3e42480748078a51df875620d27e3679e5840

Contents?: true

Size: 555 Bytes

Versions: 10

Compression:

Stored size: 555 Bytes

Contents

module DNSimple
  module Commands
    class Me
      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.login_count}"
        puts "\tFailed logins: #{user.failed_login_count}"
        puts "\tDomains in account: #{user.domain_count}"
        puts "\tDomains allowed: #{user.domain_limit}"
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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