Class: Metrics::Dashboard::Annotations::CreateService

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

Instance Attribute Summary

Attributes inherited from BaseService

#current_user

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, params) ⇒ CreateService

Returns a new instance of CreateService.


15
16
17
18
# File 'app/services/metrics/dashboard/annotations/create_service.rb', line 15

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

Instance Method Details

#executeObject


20
21
22
# File 'app/services/metrics/dashboard/annotations/create_service.rb', line 20

def execute
  execute_steps
end