Class: Kafka::Protocol::FetchResponse::FetchedTopic

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/protocol/fetch_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name


45
46
47
# File 'lib/kafka/protocol/fetch_response.rb', line 45

def name
  @name
end

#partitionsObject (readonly)

Returns the value of attribute partitions


45
46
47
# File 'lib/kafka/protocol/fetch_response.rb', line 45

def partitions
  @partitions
end