Class: IncidentManagement::IssuableEscalationStatuses::BuildService

Inherits:
BaseProjectService show all
Defined in:
app/services/incident_management/issuable_escalation_statuses/build_service.rb

Instance Attribute Summary

Attributes inherited from BaseProjectService

#project

Attributes inherited from BaseContainerService

#container, #current_user, #group, #params, #project

Instance Method Summary collapse

Methods inherited from BaseContainerService

#group_container?, #namespace_container?, #project_container?, #project_group, #root_ancestor

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?, #can_all?, #can_any?

Constructor Details

#initialize(issue) ⇒ BuildService

Returns a new instance of BuildService.



6
7
8
9
10
# File 'app/services/incident_management/issuable_escalation_statuses/build_service.rb', line 6

def initialize(issue)
  @issue = issue

  super(project: issue.project)
end

Instance Method Details

#executeObject



12
13
14
# File 'app/services/incident_management/issuable_escalation_statuses/build_service.rb', line 12

def execute
  issue.escalation_status || issue.build_incident_management_issuable_escalation_status
end