Class: Beats::Command::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/beats/commands/account.rb

Instance Attribute Summary

Attributes inherited from Base

#args

Instance Method Summary collapse

Methods inherited from Base

has_command?, #initialize

Constructor Details

This class inherits a constructor from Beats::Command::Base

Instance Method Details

#accountObject



5
6
7
# File 'lib/beats/commands/account.rb', line 5

def 
  display YAML.dump(client.)
end

#historyObject



9
10
11
12
13
14
15
# File 'lib/beats/commands/account.rb', line 9

def history
  if args.empty?
    raise CommandFailed, command_usage('account:history', 'URI')
  else
    client.add_history(CGI.escape(args.first))
  end
end