Class: Kafka::Protocol::AddPartitionsToTxnResponse::TopicPartitionsError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(topic:, partitions:) ⇒ TopicPartitionsError

Returns a new instance of TopicPartitionsError.



18
19
20
21
# File 'lib/kafka/protocol/add_partitions_to_txn_response.rb', line 18

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

Instance Attribute Details

#partitionsObject (readonly)

Returns the value of attribute partitions.



16
17
18
# File 'lib/kafka/protocol/add_partitions_to_txn_response.rb', line 16

def partitions
  @partitions
end

#topicObject (readonly)

Returns the value of attribute topic.



16
17
18
# File 'lib/kafka/protocol/add_partitions_to_txn_response.rb', line 16

def topic
  @topic
end