Sha256: 34f446c1f6310b383f91e6903ae51d8505090540b0dbf62224cebf9db29cf05a

Contents?: true

Size: 868 Bytes

Versions: 8

Compression:

Stored size: 868 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Service
    module Plugins
      module CanHaveSteps
        module Entities
          class Method
            module Entities
              module Factories
                module Hash
                  class Base < Factories::Base
                    ##
                    # @return [Symbol]
                    #
                    def key
                      @key ||= other.keys.first
                    end

                    ##
                    # @return [Object] Can be any object.
                    #
                    def value
                      Utils.memoize_including_falsy_values(self, :@value) { other.values.first }
                    end
                  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/factories/hash/base.rb
convenient_service-0.19.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb
convenient_service-0.18.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb
convenient_service-0.17.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb
convenient_service-0.16.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb
convenient_service-0.15.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb
convenient_service-0.14.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb
convenient_service-0.13.0 lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb