Class: ArcadiaContractListener

Inherits:
Object
  • Object
show all
Defined in:
ext/ae-rad/ae-rad-libs.rb

Direct Known Subclasses

ArcadiaContractListenerThread

Instance Method Summary collapse

Constructor Details

#initialize(_subscriber, _class, _method, _channel = nil) ⇒ ArcadiaContractListener

Returns a new instance of ArcadiaContractListener.



1015
1016
1017
1018
1019
1020
1021
# File 'ext/ae-rad/ae-rad-libs.rb', line 1015

def initialize(_subscriber, _class, _method, _channel=nil)
  @subscriber = _subscriber
  @class = _class
  @method = _method
  @channel = _channel
  create_callback(_class.instance)
end

Instance Method Details

#create_callback(_contract) ⇒ Object



1023
1024
1025
# File 'ext/ae-rad/ae-rad-libs.rb', line 1023

def create_callback(_contract)
  ObserverCallbackContract.new(_contract, @subscriber, @method, @channel)
end