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.



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

#partitionsObject (readonly)

Returns the value of attribute partitions.



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

def partitions
  @partitions
end

#topicObject (readonly)

Returns the value of attribute topic.



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

def topic
  @topic
end