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.
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
#responsibility ⇒ Object
Returns the value of attribute responsibility.
37 38 39 |
# File 'app/presenters/hyrax/admin/workflow_roles_presenter.rb', line 37 def responsibility @responsibility end |