Class: KafkaSyrup::Protocol::FetchResponse::Topic
- Inherits:
-
Struct
- Object
- Struct
- KafkaSyrup::Protocol::FetchResponse::Topic
- Defined in:
- lib/kafka_syrup/protocol/fetch_response.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#partitions ⇒ Object
Returns the value of attribute partitions.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
28 29 30 |
# File 'lib/kafka_syrup/protocol/fetch_response.rb', line 28 def name @name end |
#partitions ⇒ Object
Returns the value of attribute partitions
28 29 30 |
# File 'lib/kafka_syrup/protocol/fetch_response.rb', line 28 def partitions @partitions end |
Class Method Details
Instance Method Details
#add_partition(id, code, highwater_offset) ⇒ Object
29 30 31 32 33 |
# File 'lib/kafka_syrup/protocol/fetch_response.rb', line 29 def add_partition(id, code, highwater_offset) partition = Partition.new(id, code, highwater_offset, MessageSet.new) partitions << partition partition end |