Class: Kafka::Protocol::AddPartitionsToTxnResponse::TopicPartitionsError
- Inherits:
-
Object
- Object
- Kafka::Protocol::AddPartitionsToTxnResponse::TopicPartitionsError
- Defined in:
- lib/kafka/protocol/add_partitions_to_txn_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:) ⇒ TopicPartitionsError
constructor
A new instance of TopicPartitionsError.
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
#partitions ⇒ Object (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 |
#topic ⇒ Object (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 |