Sha256: 3cfb0aec27b9588de8b31fc55d59b9c8daa6e64815e51e39860bf42a2a4240a7

Contents?: true

Size: 1001 Bytes

Versions: 2

Compression:

Stored size: 1001 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        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

2 entries across 2 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/extract_params.rb
convenient_service-0.11.0 lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/extract_params.rb