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.
47 48 49 50 |
# File 'lib/kafka/protocol/fetch_response.rb', line 47 def initialize(name:, partitions:) @name = name @partitions = partitions end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
45 46 47 |
# File 'lib/kafka/protocol/fetch_response.rb', line 45 def name @name end |
#partitions ⇒ Object (readonly)
Returns the value of attribute partitions.
45 46 47 |
# File 'lib/kafka/protocol/fetch_response.rb', line 45 def partitions @partitions end |