Class: MLserver::ClientHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/MLserver/client_handler.rb

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ ClientHandler

Returns a new instance of ClientHandler.



3
4
5
# File 'lib/MLserver/client_handler.rb', line 3

def initialize(&block)
  @block = block
end

Instance Method Details

#run(request, client) ⇒ Object



7
8
9
# File 'lib/MLserver/client_handler.rb', line 7

def run(request, client)
  @block.call(request, client)
end