Class: Kafka::Protocol::FetchResponse::FetchedTopic
- Inherits:
-
Object
- Object
- Kafka::Protocol::FetchResponse::FetchedTopic
- Defined in:
- lib/kafka/protocol/fetch_response.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#partitions ⇒ Object
readonly
Returns the value of attribute partitions.
Instance Method Summary collapse
-
#initialize(name:, partitions:) ⇒ FetchedTopic
constructor
A new instance of FetchedTopic.
Constructor Details
#initialize(name:, partitions:) ⇒ FetchedTopic
Returns a new instance of FetchedTopic.
33 34 35 36 |
# File 'lib/kafka/protocol/fetch_response.rb', line 33 def initialize(name:, partitions:) @name = name @partitions = partitions end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
31 32 33 |
# File 'lib/kafka/protocol/fetch_response.rb', line 31 def name @name end |
#partitions ⇒ Object (readonly)
Returns the value of attribute partitions.
31 32 33 |
# File 'lib/kafka/protocol/fetch_response.rb', line 31 def partitions @partitions end |