Sha256: 214ca4aa7a910c1c635bd884e0dd37a1dec27513dec80e3bd1fb9fdd13758a19
Contents?: true
Size: 588 Bytes
Versions: 2
Compression:
Stored size: 588 Bytes
Contents
module Legion::Extensions::Transformer::Transport::Messages class Message < Legion::Transport::Message def type 'task' end def message @options[:function] = function.values[:name] @options end def routing_key "#{function.runner.extension.values[:name]}.#{function.runner.values[:name]}.#{function.values[:name]}" end def exchange Legion::Transport::Exchange.new(function.runner.extension.values[:exchange]) end def function @function ||= Legion::Data::Model::Function[@options[:function_id]] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lex-transformer-0.1.4 | lib/legion/extensions/transformer/transport/messages/message.rb |
lex-transformer-0.1.3 | lib/legion/extensions/transformer/transport/messages/message.rb |