Class: Hyrax::Transactions::CollectionDestroy

Inherits:
Transaction
  • Object
show all
Defined in:
lib/hyrax/transactions/collection_destroy.rb

Overview

Destroys a PcdmCollection

Since:

  • 3.4.0

Constant Summary collapse

DEFAULT_STEPS =

TODO: Add step that checks if collection is empty for collections of types that require it

Since:

  • 3.4.0

['collection_resource.delete',
'collection_resource.delete_acl'].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) ⇒ CollectionDestroy

Returns a new instance of CollectionDestroy.

See Also:

Since:

  • 3.4.0


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

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