Class: SimplePublisher::Message
- Inherits:
-
Object
- Object
- SimplePublisher::Message
- Defined in:
- lib/simple_publisher/message.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(message_body) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(message_body) ⇒ Message
Returns a new instance of Message.
7 8 9 10 |
# File 'lib/simple_publisher/message.rb', line 7 def initialize() @body = generate_uid! end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
5 6 7 |
# File 'lib/simple_publisher/message.rb', line 5 def body @body end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
5 6 7 |
# File 'lib/simple_publisher/message.rb', line 5 def uid @uid end |