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.



22
23
24
25
# File 'lib/kafka/protocol/list_offset_response.rb', line 22

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

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#partition_offsetsObject (readonly)

Returns the value of attribute partition_offsets.



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

def partition_offsets
  @partition_offsets
end