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.



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

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

Instance Method Details

#execute(team_id) ⇒ Object



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

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