Class: Todos::Destroy::GroupPrivateService

Inherits:
BaseService
  • Object
show all
Extended by:
Gitlab::Utils::Override
Defined in:
app/services/todos/destroy/group_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(group_id) ⇒ GroupPrivateService

rubocop: disable CodeReuse/ActiveRecord


11
12
13
# File 'app/services/todos/destroy/group_private_service.rb', line 11

def initialize(group_id)
  @group = Group.find_by(id: group_id)
end

Instance Attribute Details

#groupObject (readonly)

Returns the value of attribute group.


8
9
10
# File 'app/services/todos/destroy/group_private_service.rb', line 8

def group
  @group
end