Class: Kafka::Protocol::OffsetFetchResponse::PartitionOffsetInfo
- Inherits:
-
Object
- Object
- Kafka::Protocol::OffsetFetchResponse::PartitionOffsetInfo
- Defined in:
- lib/kafka/protocol/offset_fetch_response.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
Instance Method Summary collapse
-
#initialize(offset:, metadata:, error_code:) ⇒ PartitionOffsetInfo
constructor
A new instance of PartitionOffsetInfo.
Constructor Details
#initialize(offset:, metadata:, error_code:) ⇒ PartitionOffsetInfo
Returns a new instance of PartitionOffsetInfo.
9 10 11 12 13 |
# File 'lib/kafka/protocol/offset_fetch_response.rb', line 9 def initialize(offset:, metadata:, error_code:) @offset = offset @metadata = @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
7 8 9 |
# File 'lib/kafka/protocol/offset_fetch_response.rb', line 7 def error_code @error_code end |
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
7 8 9 |
# File 'lib/kafka/protocol/offset_fetch_response.rb', line 7 def @metadata end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
7 8 9 |
# File 'lib/kafka/protocol/offset_fetch_response.rb', line 7 def offset @offset end |