Sha256: 54af9fdff13022f94dae2e87cf49548dd45a3086629d10b66a87de933ae1a667

Contents?: true

Size: 1.47 KB

Versions: 8

Compression:

Stored size: 1.47 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Method
            module Entities
              module Directions
                class Base
                  include Support::AbstractMethod
                  include Support::Copyable

                  ##
                  # @return [Boolean]
                  # @raise [ConvenientService::Error]
                  #
                  abstract_method :validate_as_input_for_container!

                  ##
                  # @return [Boolean]
                  # @raise [ConvenientService::Error]
                  #
                  abstract_method :validate_as_output_for_container!

                  ##
                  # @return [Boolean]
                  #
                  abstract_method :define_output_in_container!

                  ##
                  # @param other [Object] Can be any type.
                  # @return [Boolean, nil]
                  #
                  def ==(other)
                    return unless other.instance_of?(self.class)

                    true
                  end

                  ##
                  # @return [ConvenientService::Support::Arguments]
                  #
                  def to_arguments
                    Support::Arguments.new
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
convenient_service-0.19.1 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb