Class: VsCode::Settings::DeleteService
- Inherits:
-
Object
- Object
- VsCode::Settings::DeleteService
- Defined in:
- app/services/vs_code/settings/delete_service.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(current_user:) ⇒ DeleteService
constructor
A new instance of DeleteService.
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
#execute ⇒ Object
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 |