Class: BaseGroupService

Inherits:
BaseContainerService show all
Defined in:
app/services/base_group_service.rb

Overview

Base class, scoped by group

Instance Attribute Summary collapse

Attributes inherited from BaseContainerService

#container, #current_user, #params

Instance Method Summary collapse

Methods inherited from BaseContainerService

#group_container?, #namespace_container?, #project_container?

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:, current_user: nil, params: {}) ⇒ BaseGroupService

Returns a new instance of BaseGroupService.


7
8
9
10
11
# File 'app/services/base_group_service.rb', line 7

def initialize(group:, current_user: nil, params: {})
  super(container: group, current_user: current_user, params: params)

  @group = group
end

Instance Attribute Details

#groupObject

rubocop:disable Gitlab/NamespacedClass


5
6
7
# File 'app/services/base_group_service.rb', line 5

def group
  @group
end