Class: CurationConcerns::Workflow::DeactivateObject

Inherits:
Object
  • Object
show all
Defined in:
app/services/curation_concerns/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/curation_concerns/workflow/deactivate_object.rb', line 11

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