Class: Metrics::Dashboard::Annotations::DeleteService

Inherits:
BaseService
  • Object
show all
Includes:
Stepable
Defined in:
app/services/metrics/dashboard/annotations/delete_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from Stepable

#execute_steps, #steps

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Constructor Details

#initialize(user, annotation) ⇒ DeleteService

Returns a new instance of DeleteService.


13
14
15
16
# File 'app/services/metrics/dashboard/annotations/delete_service.rb', line 13

def initialize(user, annotation)
  @user = user
  @annotation = annotation
end

Instance Method Details

#executeObject


18
19
20
# File 'app/services/metrics/dashboard/annotations/delete_service.rb', line 18

def execute
  execute_steps
end