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.
- #timestamp ⇒ Object readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
- #initialize(partition:, error_code:, offset:, timestamp:) ⇒ PartitionInfo constructor
A new instance of PartitionInfo.
Constructor Details
#initialize(partition:, error_code:, offset:, timestamp:) ⇒ PartitionInfo
Returns a new instance of PartitionInfo.
18 19 20 21 22 23 | # File 'lib/kafka/protocol/produce_response.rb', line 18 def initialize(partition:, error_code:, offset:, timestamp:) @partition = partition @error_code = error_code @offset = offset @timestamp = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
16 17 18 | # File 'lib/kafka/protocol/produce_response.rb', line 16 def error_code @error_code end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
16 17 18 | # File 'lib/kafka/protocol/produce_response.rb', line 16 def offset @offset end |
#partition ⇒ Object (readonly)
Returns the value of attribute partition.
16 17 18 | # File 'lib/kafka/protocol/produce_response.rb', line 16 def partition @partition end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
16 17 18 | # File 'lib/kafka/protocol/produce_response.rb', line 16 def @timestamp end |