Class: Hyrax::WorkflowActionInfo

Inherits:
Object
  • Object
show all
Defined in:
app/models/hyrax/workflow_action_info.rb

Overview

A simple data object for holding a user, work and their workflow proxies

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(work, user) ⇒ WorkflowActionInfo

Returns a new instance of WorkflowActionInfo.


5
6
7
8
9
10
# File 'app/models/hyrax/workflow_action_info.rb', line 5

def initialize(work, user)
  @work = work
  @user = user
  @entity = Sipity::Entity(work)
  @agent = Sipity::Agent(user)
end

Instance Attribute Details

#agentObject (readonly)

Returns the value of attribute agent


12
13
14
# File 'app/models/hyrax/workflow_action_info.rb', line 12

def agent
  @agent
end

#entityObject (readonly)

Returns the value of attribute entity


12
13
14
# File 'app/models/hyrax/workflow_action_info.rb', line 12

def entity
  @entity
end

#userObject (readonly)

Returns the value of attribute user


12
13
14
# File 'app/models/hyrax/workflow_action_info.rb', line 12

def user
  @user
end

#workObject (readonly)

Returns the value of attribute work


12
13
14
# File 'app/models/hyrax/workflow_action_info.rb', line 12

def work
  @work
end