Sha256: 4d17c01fac7de91cc9c1557ea30089e6dcd2ce7b557bd3c530eb08e46318ecfc

Contents?: true

Size: 1003 Bytes

Versions: 13

Compression:

Stored size: 1003 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultSteps
        module Entities
          class Step
            module Commands
              class ExtractParams < Support::Command
                attr_reader :args, :kwargs

                def initialize(args:, kwargs:)
                  @args = args
                  @kwargs = kwargs
                end

                def call
                  Structs::Params.new(
                    service: args.first,
                    inputs: Utils::Array.wrap(kwargs[:in]),
                    outputs: Utils::Array.wrap(kwargs[:out]),
                    index: kwargs[:index],
                    ##
                    # TODO: Specs.
                    #
                    container: kwargs[:container],
                    organizer: kwargs[:organizer]
                  )
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
convenient_service-0.10.1 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.10.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.9.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.8.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.7.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.6.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.5.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.4.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.3.1 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb