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.3.13.beta2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.13.beta1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.12 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.11 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.10 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.9 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.8 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.7 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.6 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.5 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.4 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.3 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.2 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.1 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.3.0 lib/kafka/protocol/sync_group_response.rb
ruby-kafka-0.2.0 lib/kafka/protocol/sync_group_response.rb