Class: Hyrax::Transactions::WorkDestroy

Inherits:
Transaction show all
Defined in:
lib/hyrax/transactions/work_destroy.rb

Overview

Destroys a work resource

Since:

  • 3.0.0

Constant Summary collapse

DEFAULT_STEPS =

Since:

  • 3.0.0

['work_resource.delete_all_file_sets',
'work_resource.delete_acl',
'work_resource.delete'].freeze

Instance Attribute Summary

Attributes inherited from Transaction

#container, #steps

Instance Method Summary collapse

Methods inherited from Transaction

#call, #with_step_args

Constructor Details

#initialize(container: Container, steps: DEFAULT_STEPS) ⇒ WorkDestroy

Returns a new instance of WorkDestroy.

See Also:

Since:

  • 3.0.0



17
18
19
# File 'lib/hyrax/transactions/work_destroy.rb', line 17

def initialize(container: Container, steps: DEFAULT_STEPS)
  super
end