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::Vocabulary::Term)

    the Fedora Resource Status 'inactive' term

Class Method Summary collapse

Class Method Details

.call(target:) ⇒ Object


11
12
13
# File 'app/services/hyrax/workflow/deactivate_object.rb', line 11

def self.call(target:, **)
  target.state = Vocab::FedoraResourceStatus.inactive
end