Class: Kafka::Protocol::LeaveGroupRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/kafka/protocol/leave_group_request.rb

Instance Method Summary collapse

Constructor Details

#initialize(group_id:, member_id:) ⇒ LeaveGroupRequest

Returns a new instance of LeaveGroupRequest.


4
5
6
7
# File 'lib/kafka/protocol/leave_group_request.rb', line 4

def initialize(group_id:, member_id:)
  @group_id = group_id
  @member_id = member_id
end

Instance Method Details

#api_keyObject


9
10
11
# File 'lib/kafka/protocol/leave_group_request.rb', line 9

def api_key
  13
end

#encode(encoder) ⇒ Object


17
18
19
20
# File 'lib/kafka/protocol/leave_group_request.rb', line 17

def encode(encoder)
  encoder.write_string(@group_id)
  encoder.write_string(@member_id)
end

#response_classObject


13
14
15
# File 'lib/kafka/protocol/leave_group_request.rb', line 13

def response_class
  LeaveGroupResponse
end