class Legion::Transport::Messages::Dynamic
Attributes
options[RW]
Public Instance Methods
exchange()
click to toggle source
# File lib/legion/transport/messages/dynamic.rb, line 18 def exchange Legion::Transport::Exchange.new(function.runner.extension.values[:exchange]) end
function()
click to toggle source
# File lib/legion/transport/messages/dynamic.rb, line 22 def function @function ||= Legion::Data::Model::Function[@options[:function_id]] end
message()
click to toggle source
# File lib/legion/transport/messages/dynamic.rb, line 9 def message { args: @options[:args] || @options, function: function.values[:name] } end
routing_key()
click to toggle source
# File lib/legion/transport/messages/dynamic.rb, line 14 def routing_key "#{function.runner.extension.values[:name]}.#{function.runner.values[:name]}.#{function.values[:name]}" end
type()
click to toggle source
# File lib/legion/transport/messages/dynamic.rb, line 5 def type 'task' end