Class: Boards::BaseService
- Inherits:
-
BaseService
- Object
- BaseService
- Boards::BaseService
- Defined in:
- app/services/boards/base_service.rb
Direct Known Subclasses
BaseItemMoveService, BaseItemsListService, BoardsFinder, CreateService, DestroyService, Issues::CreateService, Lists::BaseCreateService, Lists::BaseDestroyService, Lists::BaseUpdateService, Lists::ListService, Lists::MoveService, UpdateService, Visits::CreateService
Instance Attribute Summary collapse
-
#current_user ⇒ Object
Parent can either a group or a project.
-
#params ⇒ Object
Parent can either a group or a project.
-
#parent ⇒ Object
Parent can either a group or a project.
Attributes inherited from BaseService
Instance Method Summary collapse
-
#initialize(parent, user, params = {}) ⇒ BaseService
constructor
A new instance of BaseService.
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
Constructor Details
#initialize(parent, user, params = {}) ⇒ BaseService
Returns a new instance of BaseService.
8 9 10 11 12 |
# File 'app/services/boards/base_service.rb', line 8 def initialize(parent, user, params = {}) @parent = parent @current_user = user @params = params.dup end |
Instance Attribute Details
#current_user ⇒ Object
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 |
#params ⇒ Object
Parent can either a group or a project
6 7 8 |
# File 'app/services/boards/base_service.rb', line 6 def params @params end |
#parent ⇒ Object
Parent can either a group or a project
6 7 8 |
# File 'app/services/boards/base_service.rb', line 6 def parent @parent end |