Class: A2::Subcommand::Team::ListAllMembership

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

Instance Method Summary collapse

Constructor Details

#initializeListAllMembership

Returns a new instance of ListAllMembership.



62
63
64
# File 'lib/a2/subcommands/team.rb', line 62

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

Instance Method Details

#execute(team_id) ⇒ Object



66
67
68
# File 'lib/a2/subcommands/team.rb', line 66

def execute(team_id)
  puts JSON.pretty_generate(A2::Client.new(command_parser.data).list_all_membership(team_id))
end