Class: Hyrax::Admin::WorkflowRolesPresenter::ResponsibilityPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/hyrax/admin/workflow_roles_presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(responsibility) ⇒ ResponsibilityPresenter

Returns a new instance of ResponsibilityPresenter.



33
34
35
36
# File 'app/presenters/hyrax/admin/workflow_roles_presenter.rb', line 33

def initialize(responsibility)
  @responsibility = responsibility
  @workflow_role_presenter = WorkflowRolePresenter.new(responsibility.workflow_role)
end

Instance Attribute Details

#responsibilityObject

Returns the value of attribute responsibility.



38
39
40
# File 'app/presenters/hyrax/admin/workflow_roles_presenter.rb', line 38

def responsibility
  @responsibility
end