Sha256: 7239e55214d76e3e948a3326dd0162883aab9320428b013dd498a3fc8e84c4c3

Contents?: true

Size: 523 Bytes

Versions: 7

Compression:

Stored size: 523 Bytes

Contents

# frozen_string_literal: true
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
    module DeactivateObject
      def self.call(target:, **)
        target.state = Vocab::FedoraResourceStatus.inactive
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-3.1.0 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.0.2 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.0.1 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.0.0 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.0.0.pre.rc4 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.0.0.pre.rc3 app/services/hyrax/workflow/deactivate_object.rb
hyrax-3.0.0.pre.rc2 app/services/hyrax/workflow/deactivate_object.rb