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.



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

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

Instance Attribute Details

#responsibilityObject

Returns the value of attribute responsibility.



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

def responsibility
  @responsibility
end