Class: A2::Subcommand::Team::Get

Inherits:
CmdParse::Command
  • Object
show all
Defined in:
lib/a2/subcommands/team.rb

Instance Method Summary collapse

Constructor Details

#initializeGet

Returns a new instance of Get.



31
32
33
# File 'lib/a2/subcommands/team.rb', line 31

def initialize
  super('get-team', takes_commands: false)
end

Instance Method Details

#execute(id) ⇒ Object



35
36
37
# File 'lib/a2/subcommands/team.rb', line 35

def execute(id)
  puts JSON.pretty_generate(A2::Client.new(command_parser.data).get_team(id))
end