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.177.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.176.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.176.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.175.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.174.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.173.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.173.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.172.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.171.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.171.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.170.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.170.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.169.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.168.4 lib/seahorse/client/handler.rb
aws-sdk-core-3.168.3 lib/seahorse/client/handler.rb
aws-sdk-core-3.168.2 lib/seahorse/client/handler.rb
aws-sdk-core-3.168.1 lib/seahorse/client/handler.rb
aws-sdk-core-3.168.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.167.0 lib/seahorse/client/handler.rb
aws-sdk-core-3.166.0 lib/seahorse/client/handler.rb