Class: KafkaSyrup::Protocol::ProduceRequest::Topic
- Inherits:
-
Struct
- Object
- Struct
- KafkaSyrup::Protocol::ProduceRequest::Topic
- Defined in:
- lib/kafka_syrup/protocol/produce_request.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#partitions ⇒ Object
Returns the value of attribute partitions.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
32 33 34 |
# File 'lib/kafka_syrup/protocol/produce_request.rb', line 32 def name @name end |
#partitions ⇒ Object
Returns the value of attribute partitions
32 33 34 |
# File 'lib/kafka_syrup/protocol/produce_request.rb', line 32 def partitions @partitions end |
Instance Method Details
#add_partition(id) ⇒ Object
33 34 35 36 37 |
# File 'lib/kafka_syrup/protocol/produce_request.rb', line 33 def add_partition(id) partition = Partition.new(id, MessageSet.new) partitions << partition partition end |