Class: CurationConcerns::Workflow::WorkflowByModelNameStrategy
- Inherits:
-
Object
- Object
- CurationConcerns::Workflow::WorkflowByModelNameStrategy
- Defined in:
- app/services/curation_concerns/workflow/workflow_by_model_name_strategy.rb
Instance Method Summary collapse
-
#initialize(work, _attributes) ⇒ WorkflowByModelNameStrategy
constructor
A new instance of WorkflowByModelNameStrategy.
-
#workflow_name ⇒ String
The name of the workflow to use.
Constructor Details
#initialize(work, _attributes) ⇒ WorkflowByModelNameStrategy
Returns a new instance of WorkflowByModelNameStrategy.
4 5 6 |
# File 'app/services/curation_concerns/workflow/workflow_by_model_name_strategy.rb', line 4 def initialize(work, _attributes) @work = work end |
Instance Method Details
#workflow_name ⇒ String
Returns The name of the workflow to use.
9 10 11 |
# File 'app/services/curation_concerns/workflow/workflow_by_model_name_strategy.rb', line 9 def workflow_name 'default' end |