Class: Kafka::Protocol::ListOffsetResponse::PartitionOffsetInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(partition:, error_code:, offsets:) ⇒ PartitionOffsetInfo


27
28
29
30
31
# File 'lib/kafka/protocol/list_offset_response.rb', line 27

def initialize(partition:, error_code:, offsets:)
  @partition = partition
  @error_code = error_code
  @offsets = offsets
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code


25
26
27
# File 'lib/kafka/protocol/list_offset_response.rb', line 25

def error_code
  @error_code
end

#offsetsObject (readonly)

Returns the value of attribute offsets


25
26
27
# File 'lib/kafka/protocol/list_offset_response.rb', line 25

def offsets
  @offsets
end

#partitionObject (readonly)

Returns the value of attribute partition


25
26
27
# File 'lib/kafka/protocol/list_offset_response.rb', line 25

def partition
  @partition
end