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