Class: CurationConcerns::Workflow::SipityActionsGenerator
- Inherits:
-
Object
- Object
- CurationConcerns::Workflow::SipityActionsGenerator
- Defined in:
- app/services/curation_concerns/workflow/sipity_actions_generator.rb
Overview
Responsible for creating database entries for the given workflow’s actions
Class Method Summary collapse
-
.call(**keywords, &block) ⇒ Sipity::Workflow
Responsible for creating database entries for the given workflow’s actions.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(workflow:, actions_configuration:) ⇒ SipityActionsGenerator
constructor
A new instance of SipityActionsGenerator.
Constructor Details
#initialize(workflow:, actions_configuration:) ⇒ SipityActionsGenerator
Returns a new instance of SipityActionsGenerator.
16 17 18 19 |
# File 'app/services/curation_concerns/workflow/sipity_actions_generator.rb', line 16 def initialize(workflow:, actions_configuration:) self.workflow = workflow self.actions_configuration = actions_configuration end |
Class Method Details
.call(**keywords, &block) ⇒ Sipity::Workflow
Responsible for creating database entries for the given workflow’s actions
12 13 14 |
# File 'app/services/curation_concerns/workflow/sipity_actions_generator.rb', line 12 def self.call(**keywords, &block) new(**keywords, &block).call end |
Instance Method Details
#call ⇒ Object
33 34 35 36 |
# File 'app/services/curation_concerns/workflow/sipity_actions_generator.rb', line 33 def call generate_state_diagram! workflow end |