Class: VsCode::Settings::DeleteService

Inherits:
Object
  • Object
show all
Defined in:
app/services/vs_code/settings/delete_service.rb

Instance Method Summary collapse

Constructor Details

#initialize(current_user:) ⇒ DeleteService

Returns a new instance of DeleteService.



6
7
8
# File 'app/services/vs_code/settings/delete_service.rb', line 6

def initialize(current_user:)
  @current_user = current_user
end

Instance Method Details

#executeObject



10
11
12
13
14
# File 'app/services/vs_code/settings/delete_service.rb', line 10

def execute
  VsCodeSetting.by_user(current_user).delete_all

  ServiceResponse.success
end