Class: Kafka::Protocol::LeaveGroupResponse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code:) ⇒ LeaveGroupResponse

Returns a new instance of LeaveGroupResponse.


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

def initialize(error_code:)
  @error_code = error_code
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code


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

def error_code
  @error_code
end

Class Method Details

.decode(decoder) ⇒ Object


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

def self.decode(decoder)
  new(error_code: decoder.int16)
end