Class: Ruote::Receiver
- Inherits:
-
Object
- Object
- Ruote::Receiver
- Includes:
- ReceiverMixin
- Defined in:
- lib/ruote/receiver/base.rb
Overview
A receiver is meant to receive workitems and feed them back into the engine (the storage actually).
Instance Method Summary collapse
-
#initialize(cwes, options = {}) ⇒ Receiver
constructor
Accepts context, worker, engine or storage as first argument.
Methods included from ReceiverMixin
#applied_workitem, #fetch_flow_expression, #launch, #receive, #reply, #reply_to_engine, #sign
Constructor Details
#initialize(cwes, options = {}) ⇒ Receiver
Accepts context, worker, engine or storage as first argument.
205 206 207 208 209 |
# File 'lib/ruote/receiver/base.rb', line 205 def initialize(cwes, ={}) @context = cwes.context @options = end |