Class: Fake::Kafka::Batch
- Inherits:
-
Object
- Object
- Fake::Kafka::Batch
- Defined in:
- lib/fake/kafka/batch.rb
Instance Attribute Summary collapse
-
#highwater_mark_offset ⇒ Object
readonly
Returns the value of attribute highwater_mark_offset.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#partition ⇒ Object
readonly
Returns the value of attribute partition.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic:, partition:, messages:, highwater_mark_offset:) ⇒ Batch
constructor
A new instance of Batch.
Constructor Details
#initialize(topic:, partition:, messages:, highwater_mark_offset:) ⇒ Batch
Returns a new instance of Batch.
4 5 6 7 8 9 |
# File 'lib/fake/kafka/batch.rb', line 4 def initialize(topic:, partition:, messages:, highwater_mark_offset:) @topic = topic @partition = partition = @highwater_mark_offset = highwater_mark_offset end |
Instance Attribute Details
#highwater_mark_offset ⇒ Object (readonly)
Returns the value of attribute highwater_mark_offset.
2 3 4 |
# File 'lib/fake/kafka/batch.rb', line 2 def highwater_mark_offset @highwater_mark_offset end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
2 3 4 |
# File 'lib/fake/kafka/batch.rb', line 2 def end |
#partition ⇒ Object (readonly)
Returns the value of attribute partition.
2 3 4 |
# File 'lib/fake/kafka/batch.rb', line 2 def partition @partition end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
2 3 4 |
# File 'lib/fake/kafka/batch.rb', line 2 def topic @topic end |