Class: CurationConcerns::Workflow::WorkflowByModelNameStrategy

Inherits:
Object
  • Object
show all
Defined in:
app/services/curation_concerns/workflow/workflow_by_model_name_strategy.rb

Instance Method Summary collapse

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_nameString

Returns The name of the workflow to use.

Returns:

  • (String)

    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