class Devpad::CLI::Commands::Review::User
Public Class Methods
new(shell:)
click to toggle source
# File lib/devpad/cli/commands/review/user.rb, line 6 def initialize(shell:) @shell = shell @cli = HighLine.new end
Public Instance Methods
execute(params = {})
click to toggle source
# File lib/devpad/cli/commands/review/user.rb, line 11 def execute(params = {}) user_id = @cli.choose do |menu| Choose.new(menu: menu).perform end review = Devpad::API::Review::User.update(params.merge(object_id: user_id)) @shell.say review.user_name end