Class: CurationConcerns::Admin::WorkflowRolePresenter::ResponsibilityPresenter
- Inherits:
-
Object
- Object
- CurationConcerns::Admin::WorkflowRolePresenter::ResponsibilityPresenter
- Defined in:
- app/presenters/curation_concerns/admin/workflow_role_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.
- #label ⇒ Object
Constructor Details
#initialize(responsibility) ⇒ ResponsibilityPresenter
Returns a new instance of ResponsibilityPresenter.
31 32 33 34 |
# File 'app/presenters/curation_concerns/admin/workflow_role_presenter.rb', line 31 def initialize(responsibility) @responsibility = responsibility @wf_role = responsibility.workflow_role end |
Instance Attribute Details
#responsibility ⇒ Object
Returns the value of attribute responsibility.
36 37 38 |
# File 'app/presenters/curation_concerns/admin/workflow_role_presenter.rb', line 36 def responsibility @responsibility end |
Instance Method Details
#label ⇒ Object
38 39 40 |
# File 'app/presenters/curation_concerns/admin/workflow_role_presenter.rb', line 38 def label "#{@wf_role.workflow.name} - #{@wf_role.role.name}" end |