class Devpad::CLI::Commands::Account::Users
Public Class Methods
new(shell:)
click to toggle source
# File lib/devpad/cli/commands/account/users.rb, line 6 def initialize(shell:) @shell = shell end
Public Instance Methods
execute()
click to toggle source
# File lib/devpad/cli/commands/account/users.rb, line 10 def execute rows = Devpad::API::Account::User.all.each_with_index.map do |user, index| [index + 1, user.name, user.role] end @shell.print_table rows end