Class: Kafka::Protocol::ProduceResponse::TopicInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/protocol/produce_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic:, partitions:) ⇒ TopicInfo

Returns a new instance of TopicInfo.


7
8
9
10
# File 'lib/kafka/protocol/produce_response.rb', line 7

def initialize(topic:, partitions:)
  @topic = topic
  @partitions = partitions
end

Instance Attribute Details

#partitionsObject (readonly)

Returns the value of attribute partitions


5
6
7
# File 'lib/kafka/protocol/produce_response.rb', line 5

def partitions
  @partitions
end

#topicObject (readonly)

Returns the value of attribute topic


5
6
7
# File 'lib/kafka/protocol/produce_response.rb', line 5

def topic
  @topic
end