Class: Kafka::Batch
- Inherits:
-
Object
- Object
- Kafka::Batch
- Defined in:
- lib/kafka/batch.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
Instance Method Summary collapse
- #<<(message) ⇒ Object
-
#initialize ⇒ Batch
constructor
A new instance of Batch.
Constructor Details
#initialize ⇒ Batch
Returns a new instance of Batch.
5 6 7 |
# File 'lib/kafka/batch.rb', line 5 def initialize self. = [] end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
3 4 5 |
# File 'lib/kafka/batch.rb', line 3 def @messages end |
Instance Method Details
#<<(message) ⇒ Object
9 10 11 |
# File 'lib/kafka/batch.rb', line 9 def << () self. << end |