Class: Kafka::Protocol::ListOffsetResponse::PartitionOffsetInfo
- Inherits:
-
Object
- Object
- Kafka::Protocol::ListOffsetResponse::PartitionOffsetInfo
- Defined in:
- lib/kafka/protocol/list_offset_response.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#offsets ⇒ Object
readonly
Returns the value of attribute offsets.
-
#partition ⇒ Object
readonly
Returns the value of attribute partition.
Instance Method Summary collapse
-
#initialize(partition:, error_code:, offsets:) ⇒ PartitionOffsetInfo
constructor
A new instance of PartitionOffsetInfo.
Constructor Details
#initialize(partition:, error_code:, offsets:) ⇒ PartitionOffsetInfo
Returns a new instance of 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_code ⇒ Object (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 |
#offsets ⇒ Object (readonly)
Returns the value of attribute offsets.
25 26 27 |
# File 'lib/kafka/protocol/list_offset_response.rb', line 25 def offsets @offsets end |
#partition ⇒ Object (readonly)
Returns the value of attribute partition.
25 26 27 |
# File 'lib/kafka/protocol/list_offset_response.rb', line 25 def partition @partition end |