Class: Blitz::Command::Account
- Inherits:
-
Blitz::Command
- Object
- Blitz::Command
- Blitz::Command::Account
- Defined in:
- lib/blitz/command/account.rb
Overview
:nodoc:
Constant Summary
Constants inherited from Blitz::Command
Instance Method Summary collapse
Methods included from Utils
Methods included from Helper
Instance Method Details
#cmd_about(args) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/blitz/command/account.rb', line 6 def cmd_about args account = Command::API.client.account_about if account['_id'] == 'anonymous' error red('Invalid credentials. Use api:init to login first') return end puts "email: #{green(account['profile']['email'])}" puts "created_at: #{account['created_at']}" puts "updated_at: #{account['created_at']}" puts "uuid: #{yellow(account['uuid'])}" end |