Class: Kafka::Protocol::DescribeGroupsRequest

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

Instance Method Summary collapse

Constructor Details

#initialize(group_ids:) ⇒ DescribeGroupsRequest

Returns a new instance of DescribeGroupsRequest.



6
7
8
# File 'lib/kafka/protocol/describe_groups_request.rb', line 6

def initialize(group_ids:)
  @group_ids = group_ids
end

Instance Method Details

#api_keyObject



10
11
12
# File 'lib/kafka/protocol/describe_groups_request.rb', line 10

def api_key
  DESCRIBE_GROUPS_API
end

#api_versionObject



14
15
16
# File 'lib/kafka/protocol/describe_groups_request.rb', line 14

def api_version
  0
end

#encode(encoder) ⇒ Object



22
23
24
# File 'lib/kafka/protocol/describe_groups_request.rb', line 22

def encode(encoder)
  encoder.write_array(@group_ids) { |group_id| encoder.write_string(group_id) }
end

#response_classObject



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

def response_class
  Protocol::DescribeGroupsResponse
end