Class: Kafka::Protocol::ProduceResponse::PartitionInfo
- Inherits:
-
Object
- Object
- Kafka::Protocol::ProduceResponse::PartitionInfo
- Defined in:
- lib/kafka/protocol/produce_response.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#partition ⇒ Object
readonly
Returns the value of attribute partition.
Instance Method Summary collapse
-
#initialize(partition:, error_code:, offset:) ⇒ PartitionInfo
constructor
A new instance of PartitionInfo.
Constructor Details
#initialize(partition:, error_code:, offset:) ⇒ PartitionInfo
Returns a new instance of PartitionInfo.
16 17 18 19 20 |
# File 'lib/kafka/protocol/produce_response.rb', line 16 def initialize(partition:, error_code:, offset:) @partition = partition @error_code = error_code @offset = offset end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
14 15 16 |
# File 'lib/kafka/protocol/produce_response.rb', line 14 def error_code @error_code end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
14 15 16 |
# File 'lib/kafka/protocol/produce_response.rb', line 14 def offset @offset end |
#partition ⇒ Object (readonly)
Returns the value of attribute partition.
14 15 16 |
# File 'lib/kafka/protocol/produce_response.rb', line 14 def partition @partition end |