Sha256: b0933bcdceee1cdac995734348608a254d11b6e58059c870539cda05cc6b5253

Contents?: true

Size: 556 Bytes

Versions: 15

Compression:

Stored size: 556 Bytes

Contents

# frozen_string_literal: true

module ConvenientService
  module Core
    module Entities
      class ClassicMiddleware
        ##
        # @param stack [#call<Hash>]
        # @return [void]
        #
        def initialize(stack)
          @stack = stack
        end

        ##
        # @return [Object] Can be any type.
        #
        def call(env)
          stack.call(env)
        end

        private

        ##
        # @!attribute [r] stack
        #   @return [#call<Hash>]
        #
        attr_reader :stack
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
convenient_service-0.12.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.11.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.10.1 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.10.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.9.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.8.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.7.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.6.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.5.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.4.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.3.1 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.3.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.2.1 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.2.0 lib/convenient_service/core/entities/classic_middleware.rb
convenient_service-0.1.0 lib/convenient_service/core/entities/classic_middleware.rb