Class: Todos::Destroy::ProjectPrivateService

Inherits:
BaseService
  • Object
show all
Extended by:
Gitlab::Utils::Override
Defined in:
app/services/todos/destroy/project_private_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Gitlab::Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from BaseService

#execute

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

#projectObject (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