Sha256: 49ed072e695f140c856f71f0e4b5f5b16e42a57e53402bea4c08d32c8923339c

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

module Hyrax
  module Workflow
    ##
    # This is a built in function for workflow, setting the `#state`
    # of the target to the Fedora 'inactive' status URI
    #
    # @param target [#state] an instance of a model that includes `Hyrax::Suppressible`
    #
    # @return [RDF::Vocabulary::Term] the Fedora Resource Status 'inactive' term
    class DeactivateObject
      def self.call(target:, **)
        target.state = Vocab::FedoraResourceStatus.inactive
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
hyrax-1.0.0.rc1 app/services/hyrax/workflow/deactivate_object.rb
test_hyrax-0.0.1.alpha app/services/hyrax/workflow/deactivate_object.rb