Class: Todos::Destroy::ProjectPrivateService
- Inherits:
-
BaseService
- Object
- BaseService
- Todos::Destroy::ProjectPrivateService
- Extended by:
- Gitlab::Utils::Override
- Defined in:
- app/services/todos/destroy/project_private_service.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(project_id) ⇒ ProjectPrivateService
constructor
rubocop: disable CodeReuse/ActiveRecord.
Methods included from Gitlab::Utils::Override
extended, extensions, included, method_added, override, prepended, queue_verification, verify!
Methods inherited from BaseService
Constructor Details
#initialize(project_id) ⇒ ProjectPrivateService
rubocop: disable CodeReuse/ActiveRecord
11 12 13 |
# File 'app/services/todos/destroy/project_private_service.rb', line 11 def initialize(project_id) @project = Project.find_by(id: project_id) end |
Instance Attribute Details
#project ⇒ Object (readonly)
Returns the value of attribute project.
8 9 10 |
# File 'app/services/todos/destroy/project_private_service.rb', line 8 def project @project end |