Sha256: 63ce9767c6cb5bfba77419b8896222a92a5ec8c3327fd088d7f01664058555a3

Contents?: true

Size: 399 Bytes

Versions: 16

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true
PowerConverter.define_conversion_for(:sipity_workflow_id) do |input|
  case input
  when Sipity::Workflow
    input.id
  when Integer
    input
  when String
    input.to_i
  else
    if input.respond_to?(:workflow_id)
      input.workflow_id
    else
      PowerConverter.convert_to_sipity_workflow_id(PowerConverter.convert_to_sipity_entity(input))
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hyrax-3.6.0 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.5.0 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-4.0.0.beta2 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.4.2 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-4.0.0.beta1 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.4.1 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.4.0 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.3.0 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.2.0 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.1.0 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.0.2 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.0.1 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.0.0 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.0.0.pre.rc4 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.0.0.pre.rc3 app/conversions/power_converters/sipity_workflow_id.rb
hyrax-3.0.0.pre.rc2 app/conversions/power_converters/sipity_workflow_id.rb