Class: IncidentManagement::IssuableEscalationStatuses::BuildService
- Inherits:
-
BaseProjectService
- Object
- BaseContainerService
- BaseProjectService
- IncidentManagement::IssuableEscalationStatuses::BuildService
- Defined in:
- app/services/incident_management/issuable_escalation_statuses/build_service.rb
Instance Attribute Summary
Attributes inherited from BaseProjectService
Attributes inherited from BaseContainerService
#container, #current_user, #group, #params, #project
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(issue) ⇒ BuildService
constructor
A new instance of BuildService.
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
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
#execute ⇒ Object
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 |