Sha256: dee28bb75aad42f06c32f4a0b68b6f0ac5bf79fcbde2c806dfd376d44e34d9a2

Contents?: true

Size: 676 Bytes

Versions: 37

Compression:

Stored size: 676 Bytes

Contents

# frozen_string_literal: true

module Seahorse
  module Client
    class Handler

      # @param [Handler] handler (nil) The next handler in the stack that
      #   should be called from within the {#call} method.  This value
      #   must only be nil for send handlers.
      def initialize(handler = nil)
        @handler = handler
      end

      # @return [Handler, nil]
      attr_accessor :handler

      # @param [RequestContext] context
      # @return [Seahorse::Response]
      def call(context)
        @handler.call(context)
      end

      def inspect
        "#<#{self.class.name||'UnnamedHandler'} @handler=#{@handler.inspect}>"
      end
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
aws-sdk-core-3.220.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.220.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.220.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.219.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.218.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.218.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.217.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.217.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.216.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.216.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.215.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.215.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.214.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.214.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.213.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.212.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.211.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.210.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.209.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.209.0 lib/seahorse/client/handler.rb