Sha256: 32527c4cb9e71062372a7286b857850ee3576dbc4563992ddcd4aa8051427180

Contents?: true

Size: 1020 Bytes

Versions: 5

Compression:

Stored size: 1020 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module HasResultSteps
        module Entities
          class Method
            module Entities
              module Values
                ##
                # TODO: Specs.
                #
                class Raw
                  def initialize(object)
                    @object = object
                  end

                  class << self
                    def wrap(object)
                      new(object)
                    end

                    private :new
                  end

                  def unwrap
                    object
                  end

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

                    object == other.object
                  end

                  protected

                  attr_reader :object
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
convenient_service-0.3.1 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/raw.rb
convenient_service-0.3.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/raw.rb
convenient_service-0.2.1 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/raw.rb
convenient_service-0.2.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/raw.rb
convenient_service-0.1.0 lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/raw.rb