Sha256: c26aa6b133340ed47acda6f40ad2d09d1308eb5a70f82b05c893ab58002bed23
Contents?: true
Size: 889 Bytes
Versions: 39
Compression:
Stored size: 889 Bytes
Contents
# frozen_string_literal: true module Kafka module Protocol class JoinGroupResponse attr_reader :error_code attr_reader :generation_id, :group_protocol attr_reader :leader_id, :member_id, :members def initialize(error_code:, generation_id:, group_protocol:, leader_id:, member_id:, members:) @error_code = error_code @generation_id = generation_id @group_protocol = group_protocol @leader_id = leader_id @member_id = member_id @members = members end def self.decode(decoder) new( error_code: decoder.int16, generation_id: decoder.int32, group_protocol: decoder.string, leader_id: decoder.string, member_id: decoder.string, members: Hash[decoder.array { [decoder.string, decoder.bytes] }], ) end end end end
Version data entries
39 entries across 39 versions & 2 rubygems