Class: A2::Subcommand::Team::ListAllMembership
- Inherits:
-
CmdParse::Command
- Object
- CmdParse::Command
- A2::Subcommand::Team::ListAllMembership
- Defined in:
- lib/a2/subcommands/team.rb
Instance Method Summary collapse
- #execute(team_id) ⇒ Object
-
#initialize ⇒ ListAllMembership
constructor
A new instance of ListAllMembership.
Constructor Details
#initialize ⇒ ListAllMembership
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 |