Sha256: b71de957e9fb7c8722ebc0cb745b18e092ce241f96854ec1040d68d9e8ea6eee

Contents?: true

Size: 938 Bytes

Versions: 4

Compression:

Stored size: 938 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Method
            module Entities
              module Directions
                class Input < Base
                  def validate_as_input_for_container!(container, method:)
                    true
                  end

                  def validate_as_output_for_container!(container, method:)
                    ::ConvenientService.raise Exceptions::MethodIsNotOutputMethod.new(method: method, container: container)
                  end

                  def define_output_in_container!(container, index:, method:)
                    ::ConvenientService.raise Exceptions::MethodIsNotOutputMethod.new(method: method, container: container)
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb