Sha256: e48e72eeab2f5b8e2a785097316de02efda550c232450530611e5ed030d5da25

Contents?: true

Size: 666 Bytes

Versions: 166

Compression:

Stored size: 666 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 [Response]
      def call(context)
        @handler.call(context)
      end

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

Version data entries

166 entries across 166 versions & 1 rubygems

Version Path
aws-sdk-core-3.131.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.131.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.131.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.130.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.130.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.130.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.129.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.129.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.128.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.128.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.127.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.126.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.126.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.126.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.125.6 lib/seahorse/client/handler.rb
aws-sdk-core-3.125.5 lib/seahorse/client/handler.rb
aws-sdk-core-3.125.4 lib/seahorse/client/handler.rb
aws-sdk-core-3.125.3 lib/seahorse/client/handler.rb
aws-sdk-core-3.125.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.125.1 lib/seahorse/client/handler.rb