Sha256: d487bb6ed93c059cfee98612d8f0393bd502bd3217e277882c68a5b5d98c2810

Contents?: true

Size: 266 Bytes

Versions: 56

Compression:

Stored size: 266 Bytes

Contents

module Kafka
  module Protocol
    class HeartbeatResponse
      attr_reader :error_code

      def initialize(error_code:)
        @error_code = error_code
      end

      def self.decode(decoder)
        new(error_code: decoder.int16)
      end
    end
  end
end

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
ruby-kafka-0.6.0.beta4 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.6.0.beta3 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.6.0.beta2 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.6.0.beta1 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.5 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.4 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.4.beta1 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.3 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.2 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.2.beta3 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.2.beta2 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.2.beta1 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.1 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.1.beta2 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.1.beta1 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.4.4 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.0 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.0.beta6 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.0.beta5 lib/kafka/protocol/heartbeat_response.rb
ruby-kafka-0.5.0.beta4 lib/kafka/protocol/heartbeat_response.rb