Class: Seahorse::Client::Handler

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(handler = nil) ⇒ Handler


8
9
10
# File 'aws-sdk-core/lib/seahorse/client/handler.rb', line 8

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

Instance Attribute Details

#handlerHandler?


13
14
15
# File 'aws-sdk-core/lib/seahorse/client/handler.rb', line 13

def handler
  @handler
end

Instance Method Details

#call(context) ⇒ Response


17
18
19
# File 'aws-sdk-core/lib/seahorse/client/handler.rb', line 17

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

#inspectObject


21
22
23
# File 'aws-sdk-core/lib/seahorse/client/handler.rb', line 21

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