Class: Kafka::Protocol::ListOffsetResponse::TopicOffsetInfo
- Inherits:
-
Object
- Object
- Kafka::Protocol::ListOffsetResponse::TopicOffsetInfo
- Defined in:
- lib/kafka/protocol/list_offset_response.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#partition_offsets ⇒ Object
readonly
Returns the value of attribute partition_offsets.
Instance Method Summary collapse
-
#initialize(name:, partition_offsets:) ⇒ TopicOffsetInfo
constructor
A new instance of TopicOffsetInfo.
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
#name ⇒ Object (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_offsets ⇒ Object (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 |