AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Seahorse::Client::Handler

Inherits:
Object
  • Object
show all
Defined in:
gems/aws-sdk-core/lib/seahorse/client/handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handler = nil) ⇒ Handler

Returns a new instance of Handler.

Parameters:

  • handler (Handler) (defaults to: nil)

    (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.



10
11
12
# File 'gems/aws-sdk-core/lib/seahorse/client/handler.rb', line 10

def initialize(handler = nil)
  @handler = handler
end

Instance Attribute Details

#handlerHandler?

Returns:



15
16
17
# File 'gems/aws-sdk-core/lib/seahorse/client/handler.rb', line 15

def handler
  @handler
end

Instance Method Details

#call(context) ⇒ Response

Parameters:

Returns:



19
20
21
# File 'gems/aws-sdk-core/lib/seahorse/client/handler.rb', line 19

def call(context)
  @handler.call(context)
end

#inspectObject



23
24
25
# File 'gems/aws-sdk-core/lib/seahorse/client/handler.rb', line 23

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