Class: Groups::BaseService

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

Instance Attribute Summary collapse

Attributes inherited from BaseService

#project

Instance Method Summary collapse

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, user, params = {}) ⇒ BaseService

Returns a new instance of BaseService.


7
8
9
# File 'app/services/groups/base_service.rb', line 7

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


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

def current_user
  @current_user
end

#groupObject

Returns the value of attribute group


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

def group
  @group
end

#paramsObject

Returns the value of attribute params


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

def params
  @params
end