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.198.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.197.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.197.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.197.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.194.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.194.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.193.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.192.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.192.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.191.6 lib/seahorse/client/handler.rb
aws-sdk-core-3.191.5 lib/seahorse/client/handler.rb
aws-sdk-core-3.191.4 lib/seahorse/client/handler.rb
aws-sdk-core-3.191.3 lib/seahorse/client/handler.rb
aws-sdk-core-3.191.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.191.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.191.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.190.3 lib/seahorse/client/handler.rb
aws-sdk-core-3.190.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.190.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.190.0 lib/seahorse/client/handler.rb