Class: Kafka::Protocol::ListOffsetResponse::TopicOffsetInfo

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(name:, partition_offsets:) ⇒ TopicOffsetInfo

Returns a new instance of TopicOffsetInfo.


18
19
20
21
# File 'lib/kafka/protocol/list_offset_response.rb', line 18

def initialize(name:, partition_offsets:)
  @name = name
  @partition_offsets = partition_offsets
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


16
17
18
# File 'lib/kafka/protocol/list_offset_response.rb', line 16

def name
  @name
end

#partition_offsetsObject (readonly)

Returns the value of attribute partition_offsets


16
17
18
# File 'lib/kafka/protocol/list_offset_response.rb', line 16

def partition_offsets
  @partition_offsets
end