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.
20 21 22 |
# File 'lib/kafka/batch.rb', line 20 def initialize self. = [] end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
18 19 20 |
# File 'lib/kafka/batch.rb', line 18 def @messages end |
Instance Method Details
#<<(message) ⇒ Object
24 25 26 |
# File 'lib/kafka/batch.rb', line 24 def << () self. << end |