Sha256: 8b6d9f06cfd5cd933b1a8ff9392f3f5af88fefc1684fb5a56cd4d1757adc2cf2

Contents?: true

Size: 508 Bytes

Versions: 56

Compression:

Stored size: 508 Bytes

Contents

require "kafka/protocol/member_assignment"

module Kafka
  module Protocol
    class SyncGroupResponse
      attr_reader :error_code, :member_assignment

      def initialize(error_code:, member_assignment:)
        @error_code = error_code
        @member_assignment = member_assignment
      end

      def self.decode(decoder)
        new(
          error_code: decoder.int16,
          member_assignment: MemberAssignment.decode(Decoder.from_string(decoder.bytes)),
        )
      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/sync_group_response.rb
ruby-kafka-0.6.0.beta3 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.6.0.beta2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.6.0.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.5 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.4 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.4.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.3 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.2.beta3 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.2.beta2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.2.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.1.beta2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.1.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.4.4 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.0 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.0.beta6 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.0.beta5 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.5.0.beta4 lib/kafka/protocol/sync_group_response.rb