Class: WorkItems::ParentLinks::DestroyService
- Inherits:
-
IssuableLinks::DestroyService
- Object
- BaseService
- IssuableLinks::DestroyService
- WorkItems::ParentLinks::DestroyService
- Extended by:
- Gitlab::Utils::Override
- Defined in:
- app/services/work_items/parent_links/destroy_service.rb
Constant Summary
Constants inherited from BaseService
BaseService::UnauthorizedError
Instance Attribute Summary collapse
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Attributes inherited from IssuableLinks::DestroyService
Attributes inherited from BaseService
Instance Method Summary collapse
-
#initialize(link, user, params = {}) ⇒ DestroyService
constructor
A new instance of DestroyService.
Methods included from Gitlab::Utils::Override
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
Methods inherited from IssuableLinks::DestroyService
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(link, user, params = {}) ⇒ DestroyService
Returns a new instance of DestroyService.
10 11 12 13 14 15 16 |
# File 'app/services/work_items/parent_links/destroy_service.rb', line 10 def initialize(link, user, params = {}) @link = link @current_user = user @params = params @parent = link.work_item_parent @child = link.work_item end |
Instance Attribute Details
#child ⇒ Object (readonly)
Returns the value of attribute child.
8 9 10 |
# File 'app/services/work_items/parent_links/destroy_service.rb', line 8 def child @child end |
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
8 9 10 |
# File 'app/services/work_items/parent_links/destroy_service.rb', line 8 def current_user @current_user end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
8 9 10 |
# File 'app/services/work_items/parent_links/destroy_service.rb', line 8 def link @link end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
8 9 10 |
# File 'app/services/work_items/parent_links/destroy_service.rb', line 8 def params @params end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
8 9 10 |
# File 'app/services/work_items/parent_links/destroy_service.rb', line 8 def parent @parent end |