Class: Kafka::Protocol::ProduceResponse::TopicInfo
- Inherits:
-
Object
- Object
- Kafka::Protocol::ProduceResponse::TopicInfo
- Defined in:
- lib/kafka/protocol/produce_response.rb
Instance Attribute Summary collapse
-
#partitions ⇒ Object
readonly
Returns the value of attribute partitions.
-
#topic ⇒ Object
readonly
Returns the value of attribute topic.
Instance Method Summary collapse
-
#initialize(topic:, partitions:) ⇒ TopicInfo
constructor
A new instance of TopicInfo.
Constructor Details
#initialize(topic:, partitions:) ⇒ TopicInfo
Returns a new instance of TopicInfo.
9 10 11 12 |
# File 'lib/kafka/protocol/produce_response.rb', line 9 def initialize(topic:, partitions:) @topic = topic @partitions = partitions end |
Instance Attribute Details
#partitions ⇒ Object (readonly)
Returns the value of attribute partitions.
7 8 9 |
# File 'lib/kafka/protocol/produce_response.rb', line 7 def partitions @partitions end |
#topic ⇒ Object (readonly)
Returns the value of attribute topic.
7 8 9 |
# File 'lib/kafka/protocol/produce_response.rb', line 7 def topic @topic end |