Class: ConvenientService::Service::Plugins::HasMermaidFlowchart::Entities::Flowchart::Entities::Code::Commands::GenerateServiceLines Private
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Plugins::HasMermaidFlowchart::Entities::Flowchart::Entities::Code::Commands::GenerateServiceLines
- Defined in:
- lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #ids ⇒ Object readonly private
- #service ⇒ Object readonly private
- #settings ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ Array<String> private
- #initialize(service:, ids:, settings:) ⇒ void constructor private
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(service:, ids:, settings:) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
45 46 47 48 49 |
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb', line 45 def initialize(service:, ids:, settings:) @service = service @ids = ids @settings = settings end |
Instance Attribute Details
#ids ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
27 28 29 |
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb', line 27 def ids @ids end |
#service ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
19 20 21 |
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb', line 19 def service @service end |
#settings ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
35 36 37 |
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb', line 35 def settings @settings end |
Instance Method Details
#call ⇒ Array<String>
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb', line 56 def call return Commands::GenerateResultLines[service: service, settings: settings, ids: next_ids] if service.steps.none? service.steps.flat_map do |step| if step.method_step? Commands::GenerateMethodStepLines[service: service, settings: settings, step: step, ids: next_ids] else Commands::GenerateServiceStepLines[service: service, settings: settings, step: step, ids: next_ids] end end end |