Class: QuickActions::TargetService
- Inherits:
-
BaseContainerService
- Object
- BaseContainerService
- QuickActions::TargetService
- Defined in:
- app/services/quick_actions/target_service.rb
Instance Attribute Summary
Attributes inherited from BaseContainerService
#container, #current_user, #group, #params, #project
Instance Method Summary collapse
Methods inherited from BaseContainerService
#group_container?, #initialize, #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
This class inherits a constructor from BaseContainerService
Instance Method Details
#execute(type, type_iid) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/services/quick_actions/target_service.rb', line 5 def execute(type, type_iid) case type&.downcase when 'workitem' work_item(type_iid) when 'issue' issue(type_iid) when 'mergerequest' merge_request(type_iid) when 'commit' commit(type_iid) end end |