Class: BaseContainerService

Inherits:
Object
  • Object
show all
Includes:
BaseServiceUtility
Defined in:
app/services/base_container_service.rb

Overview

Base class, scoped by container (project or group)

Instance Attribute Summary collapse

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

Returns a new instance of BaseContainerService.


9
10
11
# File 'app/services/base_container_service.rb', line 9

def initialize(container:, current_user: nil, params: {})
  @container, @current_user, @params = container, current_user, params.dup
end

Instance Attribute Details

#containerObject (readonly)

Returns the value of attribute container


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

def container
  @container
end

#current_userObject (readonly)

Returns the value of attribute current_user


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

def current_user
  @current_user
end

#paramsObject (readonly)

Returns the value of attribute params


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

def params
  @params
end