Class: MLserver::ClientHandler
- Inherits:
-
Object
- Object
- MLserver::ClientHandler
- Defined in:
- lib/MLserver/client_handler.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ ClientHandler
constructor
A new instance of ClientHandler.
- #run(request, client) ⇒ Object
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 |