Class: CurationConcerns::Admin::WorkflowRolePresenter::ResponsibilityPresenter

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/curation_concerns/admin/workflow_role_presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responsibilityObject

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

#labelObject



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