Class: Todos::Destroy::GroupPrivateService
- Inherits:
-
BaseService
- Object
- BaseService
- Todos::Destroy::GroupPrivateService
- Extended by:
- Gitlab::Utils::Override
- Defined in:
- app/services/todos/destroy/group_private_service.rb
Instance Attribute Summary collapse
-
#group ⇒ Object
readonly
Returns the value of attribute group.
Instance Method Summary collapse
-
#initialize(group_id) ⇒ GroupPrivateService
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(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
#group ⇒ Object (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 |