Sha256: e8046dc4603aa35020639eb2e775b2966b9a2313b2022e80edc8e72b707b0829

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  # A simple data object for holding a user, work and their workflow proxies
  class WorkflowActionInfo
    def initialize(work, user)
      @work = work
      @user = user
      @entity = Sipity::Entity(work)
      @agent = Sipity::Agent(user)
    end

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hyrax-3.1.0 app/models/hyrax/workflow_action_info.rb
hyrax-3.0.2 app/models/hyrax/workflow_action_info.rb
hyrax-3.0.1 app/models/hyrax/workflow_action_info.rb
hyrax-3.0.0 app/models/hyrax/workflow_action_info.rb
hyrax-3.0.0.pre.rc4 app/models/hyrax/workflow_action_info.rb
hyrax-3.0.0.pre.rc3 app/models/hyrax/workflow_action_info.rb
hyrax-3.0.0.pre.rc2 app/models/hyrax/workflow_action_info.rb