Class: SimplePublisher::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_publisher/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message_body)
  @body = message_body
  generate_uid!
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



5
6
7
# File 'lib/simple_publisher/message.rb', line 5

def body
  @body
end

#uidObject (readonly)

Returns the value of attribute uid.



5
6
7
# File 'lib/simple_publisher/message.rb', line 5

def uid
  @uid
end