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.147.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.146.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.145.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.144.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.143.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.142.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.141.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.140.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.139.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.138.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.137.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.136.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.135.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.134.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.133.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.132.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.131.6 lib/seahorse/client/handler.rb
aws-sdk-core-3.131.5 lib/seahorse/client/handler.rb
aws-sdk-core-3.131.4 lib/seahorse/client/handler.rb
aws-sdk-core-3.131.3 lib/seahorse/client/handler.rb