Module: Hyrax::Workflow::DeactivateObject

Defined in:
app/services/hyrax/workflow/deactivate_object.rb

Overview

This is a built in function for workflow, setting the #state of the target to the Fedora inactive status URI

Returns:

  • (RDF::URI)

    the Fedora Resource Status 'inactive' term

See Also:

Class Method Summary collapse

Class Method Details

.call(target:) ⇒ Object


14
15
16
# File 'app/services/hyrax/workflow/deactivate_object.rb', line 14

def self.call(target:, **)
  target.state = Hyrax::ResourceStatus::INACTIVE
end