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