Class: Hyrax::Admin::WorkflowRolesPresenter::ResponsibilityPresenter
- Inherits:
-
Object
- Object
- Hyrax::Admin::WorkflowRolesPresenter::ResponsibilityPresenter
- Defined in:
- app/presenters/hyrax/admin/workflow_roles_presenter.rb
Instance Attribute Summary collapse
-
#responsibility ⇒ Object
Returns the value of attribute responsibility.
Instance Method Summary collapse
-
#initialize(responsibility) ⇒ ResponsibilityPresenter
constructor
A new instance of ResponsibilityPresenter.
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
#responsibility ⇒ Object
Returns the value of attribute responsibility.
38 39 40 |
# File 'app/presenters/hyrax/admin/workflow_roles_presenter.rb', line 38 def responsibility @responsibility end |