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
#fetch_flow_expression, #fetch_workitem, #flunk, #launch, #receive, #reply, #sign
Constructor Details
#initialize(cwes, options = {}) ⇒ Receiver
Accepts context, worker, engine or storage as first argument.
270 271 272 273 274 |
# File 'lib/ruote/receiver/base.rb', line 270 def initialize(cwes, ={}) @context = cwes.context = end |