Class: Beats::Command::Account
- Inherits:
-
Base
- Object
- Base
- Beats::Command::Account
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
Instance Method Details
#account ⇒ Object
5
6
7
|
# File 'lib/beats/commands/account.rb', line 5
def account
display YAML.dump(client.account)
end
|
#history ⇒ Object
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
|