Class: BaseProjectService
- Inherits:
-
BaseContainerService
- Object
- BaseContainerService
- BaseProjectService
- Includes:
- Gitlab::Utils::StrongMemoize
- Defined in:
- app/services/base_project_service.rb
Overview
Base class, scoped by project
Direct Known Subclasses
AlertManagement::Alerts::UpdateService, Ci::JobArtifacts::DeleteProjectArtifactsService, ErrorTracking::BaseService, IncidentManagement::Incidents::CreateService, IncidentManagement::IssuableEscalationStatuses::AfterUpdateService, IncidentManagement::IssuableEscalationStatuses::BuildService, IncidentManagement::IssuableEscalationStatuses::CreateService, IncidentManagement::IssuableEscalationStatuses::PrepareUpdateService, IncidentManagement::PagerDuty::ProcessWebhookService, Issuable::CommonSystemNotesService, IssuableBaseService, Issues::SetCrmContactsService, MergeRequests::AssignIssuesService, MergeRequests::GetUrlsService, MergeRequests::LinkLfsObjectsService, MergeRequests::PushOptionsHandlerService, Snippets::BaseService
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
Attributes inherited from BaseContainerService
#container, #current_user, #params
Instance Method Summary collapse
-
#initialize(project:, current_user: nil, params: {}) ⇒ BaseProjectService
constructor
A new instance of BaseProjectService.
Methods included from Gitlab::Utils::StrongMemoize
#clear_memoization, #strong_memoize, #strong_memoized?
Methods inherited from BaseContainerService
#group_container?, #namespace_container?, #project_container?
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(project:, current_user: nil, params: {}) ⇒ BaseProjectService
Returns a new instance of BaseProjectService.
9 10 11 12 13 |
# File 'app/services/base_project_service.rb', line 9 def initialize(project:, current_user: nil, params: {}) super(container: project, current_user: current_user, params: params) @project = project end |
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
7 8 9 |
# File 'app/services/base_project_service.rb', line 7 def project @project end |