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.
-
#offset ⇒ Object
readonly
Returns the value of attribute offset.
-
#partition ⇒ Object
readonly
Returns the value of attribute partition.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(partition:, error_code:, timestamp:, offset:) ⇒ PartitionOffsetInfo
constructor
A new instance of PartitionOffsetInfo.
Constructor Details
#initialize(partition:, error_code:, timestamp:, offset:) ⇒ PartitionOffsetInfo
Returns a new instance of PartitionOffsetInfo.
31 32 33 34 35 36 |
# File 'lib/kafka/protocol/list_offset_response.rb', line 31 def initialize(partition:, error_code:, timestamp:, offset:) @partition = partition @error_code = error_code @timestamp = @offset = offset end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
29 30 31 |
# File 'lib/kafka/protocol/list_offset_response.rb', line 29 def error_code @error_code end |
#offset ⇒ Object (readonly)
Returns the value of attribute offset.
29 30 31 |
# File 'lib/kafka/protocol/list_offset_response.rb', line 29 def offset @offset end |
#partition ⇒ Object (readonly)
Returns the value of attribute partition.
29 30 31 |
# File 'lib/kafka/protocol/list_offset_response.rb', line 29 def partition @partition end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp.
29 30 31 |
# File 'lib/kafka/protocol/list_offset_response.rb', line 29 def @timestamp end |