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



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