Class: QuickActions::TargetService
- Inherits:
-
BaseService
- Object
- BaseService
- QuickActions::TargetService
- Defined in:
- app/services/quick_actions/target_service.rb
Instance Attribute Summary
Attributes inherited from BaseService
#current_user, #params, #project
Instance Method Summary collapse
Methods inherited from BaseService
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 BaseService
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 |