Sha256: 795d36417a5c91488753040926d98efe2a3af189672d89ea827904d74bd78730
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
require 'legion/transport/exchanges/task' module Legion module Transport module Messages class SubTask < Legion::Transport::Message def exchange Legion::Transport::Exchanges::Task end def message { transformation: @options[:transformation] || '{}', conditions: @options[:conditions] || '{}', results: @options[:results] || '{}' } end def validate raise TypeError unless @options[:function].is_a? String @valid = true end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
legion-transport-java-1.1.4 | lib/legion/transport/messages/subtask.rb |
legion-transport-1.1.4 | lib/legion/transport/messages/subtask.rb |