class AmqpUtils::MessageFormatter::Pretty

Public Instance Methods

generate(io, header, message) click to toggle source
# File lib/amqp_utils/message_formatter.rb, line 34
def generate(io, header, message)
  io.puts "  Header: "
  header.properties.each do |key, value|
    io.puts "    #{key.inspect} => #{value.inspect}"
  end
  io.puts "  Message: #{message.inspect}"
end