Sha256: 5ad611902eda003dc5eee4a9bebb5e99c1eadf02e5e973f43bb1d193d7e9d96a

Contents?: true

Size: 261 Bytes

Versions: 9

Compression:

Stored size: 261 Bytes

Contents

module Kafka
  module Protocol
    class TopicMetadataRequest
      def initialize(topics: [])
        @topics = topics
      end

      def encode(encoder)
        encoder.write_array(@topics) {|topic| encoder.write_string(topic) }
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ruby-kafka-0.1.1 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0.pre.beta5 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0.pre.beta4 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0.pre.beta3 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0.pre.beta2 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0.pre.beta1 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0.pre.alpha2 lib/kafka/protocol/topic_metadata_request.rb
ruby-kafka-0.1.0.pre.alpha lib/kafka/protocol/topic_metadata_request.rb