Class: ExcADG::Payload::Example::Loop
- Inherits:
-
Object
- Object
- ExcADG::Payload::Example::Loop
- Includes:
- ExcADG::Payload
- Defined in:
- lib/excadg/payload/example.rb
Overview
payload that implements an idiomatic loop by making N vertices - one for each of its dependencies
Instance Attribute Summary
Attributes included from ExcADG::Payload
Instance Method Summary collapse
Methods included from ExcADG::Payload
Instance Method Details
#get ⇒ Object
88 89 90 91 92 93 94 |
# File 'lib/excadg/payload/example.rb', line 88 def get lambda { |deps_data| deps_data.first.data.collect { |e| ExcADG::Broker.ask ExcADG::Request::AddVertex.new payload: Echo.new(args: e) } } end |