Class: ExcADG::Payload::Example::Loop

Inherits:
Object
  • Object
show all
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

#args

Instance Method Summary collapse

Methods included from ExcADG::Payload

#initialize

Instance Method Details

#getObject



93
94
95
96
97
98
99
# File 'lib/excadg/payload/example.rb', line 93

def get
  lambda { |deps_data|
    deps_data.first.data.collect { |e|
      ExcADG::Broker.ask ExcADG::Request::AddVertex.new payload: Echo.new(args: e)
    }
  }
end