Class: ExcADG::Payload::Example::Receiver

Inherits:
Object
  • Object
show all
Includes:
ExcADG::Payload
Defined in:
lib/excadg/payload/example.rb

Overview

dependencies data processing example deps_data is an Array with a VStateData objects for each dependency the example just checks that all deps returned :ping, fails otherwise

Instance Attribute Summary

Attributes included from ExcADG::Payload

#args

Instance Method Summary collapse

Methods included from ExcADG::Payload

#initialize

Instance Method Details

#getObject



30
31
32
33
34
35
36
# File 'lib/excadg/payload/example.rb', line 30

def get
  lambda { |deps_data|
    deps_data.collect { |d|
      raise 'incorrect data received from dependencies' unless d.data.eql? :ping
    }
  }
end