class Seahorse::Client::Handler

Attributes

handler[RW]

@return [Handler, nil]

Public Class Methods

new(handler = nil) click to toggle source

@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.
# File lib/seahorse/client/handler.rb, line 8
def initialize(handler = nil)
  @handler = handler
end

Public Instance Methods

call(context) click to toggle source

@param [RequestContext] context @return [Response]

# File lib/seahorse/client/handler.rb, line 17
def call(context)
  @handler.call(context)
end
inspect() click to toggle source
# File lib/seahorse/client/handler.rb, line 21
def inspect
  "#<#{self.class.name||'UnnamedHandler'} @handler=#{@handler.inspect}>"
end