Class: A2::Subcommand::Team::ListAll
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- A2::Subcommand::Team::ListAll
- Defined in:
- lib/a2/subcommands/team.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize ⇒ ListAll
constructor
A new instance of ListAll.
Constructor Details
#initialize ⇒ ListAll
Returns a new instance of ListAll.
12 13 14 |
# File 'lib/a2/subcommands/team.rb', line 12 def initialize super('list-teams', takes_commands: false) end |
Instance Method Details
#execute ⇒ Object
16 17 18 |
# File 'lib/a2/subcommands/team.rb', line 16 def execute puts JSON.pretty_generate(A2::Client.new(command_parser.data).list_all_teams) end |