Sha256: 521c1b6c12eeb27d12514135083c5fa51eff9ee41f934d67290110802181ebe0

Contents?: true

Size: 390 Bytes

Versions: 13

Compression:

Stored size: 390 Bytes

Contents

module CurationConcerns
  # A simple data object for holding a user, work and their workflow proxies
  class WorkflowActionInfo
    def initialize(work, user)
      @work = work
      @user = user
      @entity = PowerConverter.convert(work, to: :sipity_entity)
      @agent = PowerConverter.convert(user, to: :sipity_agent)
    end

    attr_reader :entity, :agent, :user, :work
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.7 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-2.0.0 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-2.0.0.rc2 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.6 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.5 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.4 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.3 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.2 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-2.0.0.rc1 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.1 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.0 app/models/curation_concerns/workflow_action_info.rb
curation_concerns-1.7.0.beta1 app/models/curation_concerns/workflow_action_info.rb