Class: ExcADG::Payload::Example::Condition

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

#args

Instance Method Summary collapse

Methods included from ExcADG::Payload

#initialize

Instance Method Details

#getObject



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