Class: ExcADG::Payload::Example::Condition
- Inherits:
-
Object
- Object
- ExcADG::Payload::Example::Condition
- Includes:
- ExcADG::Payload
- Defined in:
- lib/excadg/payload/example.rb
Overview
payload that does something on condition received from its deps see spec/vertex_spec.rb for full example
Instance Attribute Summary
Attributes included from ExcADG::Payload
Instance Method Summary collapse
Methods included from ExcADG::Payload
Instance Method Details
#get ⇒ Object
77 78 79 80 81 |
# File 'lib/excadg/payload/example.rb', line 77 def get lambda { |deps_data| ExcADG::Broker.ask ExcADG::Request::AddVertex.new(payload: Echo.new) if deps_data.all? { |d| d.data.eql? :trigger } } end |