Sha256: 0d186a9d1863e4c35553432fc7ec989c3d2d17642e06213a681c8eac7c35c6ce

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultSteps
        module Entities
          class Method
            module Entities
              module Callers
                class Base
                  include Support::AbstractMethod
                  include Support::Copyable

                  ##
                  # TODO: A better name for `object`. Wrapped object, `target`?
                  #
                  attr_reader :object

                  abstract_method \
                    :calculate_value,
                    :validate_as_input_for_container!,
                    :validate_as_output_for_container!,
                    :define_output_in_container!

                  def initialize(object)
                    @object = object
                  end

                  def ==(other)
                    return unless other.instance_of?(self.class)

                    return false if object != other.object

                    true
                  end

                  def to_args
                    [object]
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
convenient_service-0.5.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.4.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.3.1 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb