Class: Kafka::Protocol::OffsetFetchResponse::PartitionOffsetInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/protocol/offset_fetch_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_codeObject (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

#metadataObject (readonly)

Returns the value of attribute metadata.

 7 8 9
# File 'lib/kafka/protocol/offset_fetch_response.rb', line 7 def  @metadata end

#offsetObject (readonly)

Returns the value of attribute offset.

 7 8 9
# File 'lib/kafka/protocol/offset_fetch_response.rb', line 7 def offset @offset end