Class: Warren::Message::Simple

Inherits:
Struct
  • Object
show all
Defined in:
lib/warren/message/simple.rb

Overview

A simple message simply wraps the routing key and payload together

Instance Attribute Summary collapse

Instance Attribute Details

#headersHash

Returns Hash of header attributes. Can be empty hash.

Returns:

  • (Hash)

    Hash of header attributes. Can be empty hash.



13
# File 'lib/warren/message/simple.rb', line 13

Simple = Struct.new(:routing_key, :payload, :headers)

#payloadString

Returns The payload of the message.

Returns:

  • (String)

    The payload of the message



13
# File 'lib/warren/message/simple.rb', line 13

Simple = Struct.new(:routing_key, :payload, :headers)

#routing_keyString

Returns The routing key of the message.

Returns:

  • (String)

    The routing key of the message



13
# File 'lib/warren/message/simple.rb', line 13

Simple = Struct.new(:routing_key, :payload, :headers)