Class: IbRubyProxy::Client::ResponseHandleObserver

Inherits:
Object
  • Object
show all
Includes:
DRb::DRbUndumped
Defined in:
lib/ib_ruby_proxy/client/client.rb

Overview

An observer that will delegate callbacks to a CallbacksResponseHandler

Instance Method Summary collapse

Constructor Details

#initialize(callbacks_response_handler) ⇒ ResponseHandleObserver

Returns a new instance of ResponseHandleObserver.



59
60
61
# File 'lib/ib_ruby_proxy/client/client.rb', line 59

def initialize(callbacks_response_handler)
  @callbacks_response_handler = callbacks_response_handler
end

Instance Method Details

#update(*params) ⇒ Object



63
64
65
66
# File 'lib/ib_ruby_proxy/client/client.rb', line 63

def update(*params)
  method, *arguments = params
  @callbacks_response_handler.callback_received(method, *arguments)
end