Class: Kafka::Protocol::EndTxnResposne
- Inherits:
-
Object
- Object
- Kafka::Protocol::EndTxnResposne
- Defined in:
- lib/kafka/protocol/end_txn_response.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error_code:) ⇒ EndTxnResposne
constructor
A new instance of EndTxnResposne.
Constructor Details
#initialize(error_code:) ⇒ EndTxnResposne
Returns a new instance of EndTxnResposne.
8 9 10 |
# File 'lib/kafka/protocol/end_txn_response.rb', line 8 def initialize(error_code:) @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
6 7 8 |
# File 'lib/kafka/protocol/end_txn_response.rb', line 6 def error_code @error_code end |
Class Method Details
.decode(decoder) ⇒ Object
12 13 14 15 16 |
# File 'lib/kafka/protocol/end_txn_response.rb', line 12 def self.decode(decoder) _throttle_time_ms = decoder.int32 error_code = decoder.int16 new(error_code: error_code) end |