Class: Groups::GroupLinks::CreateService

Inherits:
BaseService show all
Includes:
GroupLinkable
Defined in:
app/services/groups/group_links/create_service.rb

Instance Attribute Summary

Attributes inherited from BaseService

#current_user, #group, #params

Attributes inherited from BaseService

#current_user, #params, #project

Instance Method Summary collapse

Methods included from GroupLinkable

#execute

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?

Constructor Details

#initialize(group, shared_with_group, user, params) ⇒ CreateService

Returns a new instance of CreateService.


8
9
10
11
12
# File 'app/services/groups/group_links/create_service.rb', line 8

def initialize(group, shared_with_group, user, params)
  @shared_with_group = shared_with_group

  super(group, user, params)
end