Class: Groups::BaseService

Inherits:
BaseService show all
Defined in:
app/services/groups/base_service.rb

Direct Known Subclasses

CreateService, UpdateService

Instance Attribute Summary collapse

Attributes inherited from BaseService

#project

Instance Method Summary collapse

Methods inherited from BaseService

#abilities, #can?, #deny_visibility_level, #event_service, #log_info, #notification_service, #repository, #system_hook_service, #todo_service

Methods included from Gitlab::CurrentSettings

#current_application_settings, #fake_application_settings

Constructor Details

#initialize(group, user, params = {}) ⇒ BaseService

Returns a new instance of BaseService


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

def initialize(group, user, params = {})
  @group, @current_user, @params = group, user, params.dup
end

Instance Attribute Details

#current_userObject

Returns the value of attribute current_user


3
4
5
# File 'app/services/groups/base_service.rb', line 3

def current_user
  @current_user
end

#groupObject

Returns the value of attribute group


3
4
5
# File 'app/services/groups/base_service.rb', line 3

def group
  @group
end

#paramsObject

Returns the value of attribute params


3
4
5
# File 'app/services/groups/base_service.rb', line 3

def params
  @params
end