class Seahorse::Client::Handler
Attributes
@return [Handler, nil]
Public Class Methods
Source
# File lib/seahorse/client/handler.rb, line 10 def initialize(handler = nil) @handler = handler end
@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.
Public Instance Methods
Source
# File lib/seahorse/client/handler.rb, line 19 def call(context) @handler.call(context) end
@param [RequestContext] context @return [Seahorse::Response]
Source
# File lib/seahorse/client/handler.rb, line 23 def inspect "#<#{self.class.name||'UnnamedHandler'} @handler=#{@handler.inspect}>" end