Class: Boards::BaseService

Inherits:
BaseService show all
Defined in:
app/services/boards/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(parent, user, params = {}) ⇒ BaseService

Returns a new instance of BaseService.


8
9
10
# File 'app/services/boards/base_service.rb', line 8

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

Instance Attribute Details

#current_userObject

Parent can either a group or a project


6
7
8
# File 'app/services/boards/base_service.rb', line 6

def current_user
  @current_user
end

#paramsObject

Parent can either a group or a project


6
7
8
# File 'app/services/boards/base_service.rb', line 6

def params
  @params
end

#parentObject

Parent can either a group or a project


6
7
8
# File 'app/services/boards/base_service.rb', line 6

def parent
  @parent
end