Class: BaseGroupService
- Inherits:
-
BaseContainerService
- Object
- BaseContainerService
- BaseGroupService
- Defined in:
- app/services/base_group_service.rb
Overview
Base class, scoped by group
Direct Known Subclasses
CustomerRelations::Contacts::BaseService, CustomerRelations::Organizations::BaseService
Instance Attribute Summary collapse
-
#group ⇒ Object
rubocop:disable Gitlab/NamespacedClass.
Attributes inherited from BaseContainerService
#container, #current_user, #params, #project
Instance Method Summary collapse
-
#initialize(group:, current_user: nil, params: {}) ⇒ BaseGroupService
constructor
A new instance of BaseGroupService.
Methods inherited from BaseContainerService
#group_container?, #namespace_container?, #project_container?, #project_group, #root_ancestor
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(group:, current_user: nil, params: {}) ⇒ BaseGroupService
Returns a new instance of BaseGroupService.
7 8 9 10 11 |
# File 'app/services/base_group_service.rb', line 7 def initialize(group:, current_user: nil, params: {}) super(container: group, current_user: current_user, params: params) @group = group end |
Instance Attribute Details
#group ⇒ Object
rubocop:disable Gitlab/NamespacedClass
5 6 7 |
# File 'app/services/base_group_service.rb', line 5 def group @group end |