Class: Superbot::Cloud::CLI::Member::RemoveCommand

Inherits:
BaseCommand show all
Defined in:
lib/superbot/cloud/cli/member/remove_command.rb

Instance Method Summary collapse

Methods inherited from LoginRequiredCommand

#run, run

Methods included from Validations

#require_login

Instance Method Details

#executeObject



10
11
12
# File 'lib/superbot/cloud/cli/member/remove_command.rb', line 10

def execute
  remove_member
end

#remove_memberObject



14
15
16
17
# File 'lib/superbot/cloud/cli/member/remove_command.rb', line 14

def remove_member
  api_response = Superbot::Cloud::Api.request(:remove_member, params: { organization_name: organization, username: username })
  puts "Member successfully removed from organization"
end