module Legion::Extensions::<%= @lex.capitalize %> module Transport module Messages class Conditioner < Legion::Transport::Message def initialize(payload, status, options = {}) @payload = payload @options = options @status = status @routing_key = routing_key validate end def routing_key "<%= @lex %>.<%= @name %>" end #def exchange # Legion::Extensions::Conditioner::Transport::Exchanges::Conditioner #end def message(payload = @payload, _options = {}) Legion::JSON.dump(payload) end end end end end