Class: AmqpUtils::MessageFormatter::Pretty

Inherits:
Base
  • Object
show all
Defined in:
lib/amqp_utils/message_formatter.rb

Instance Method Summary collapse

Methods inherited from Base

inherited, #load

Instance Method Details

#generate(io, header, message) ⇒ Object



34
35
36
37
38
39
40
# 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