Class: KafkaCommand::GroupMember

Inherits:
Object
  • Object
show all
Defined in:
app/models/kafka_command/group_member.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(member_metadata) ⇒ GroupMember

Returns a new instance of GroupMember.



7
8
9
10
11
12
# File 'app/models/kafka_command/group_member.rb', line 7

def initialize()
  @member_id = .member_id
  @client_host = .client_host
  @client_id = .client_id
  @topic_assignment = .member_assignment.topics
end

Instance Attribute Details

#client_hostObject (readonly)

Returns the value of attribute client_host.



5
6
7
# File 'app/models/kafka_command/group_member.rb', line 5

def client_host
  @client_host
end

#client_idObject (readonly)

Returns the value of attribute client_id.



5
6
7
# File 'app/models/kafka_command/group_member.rb', line 5

def client_id
  @client_id
end

#member_idObject (readonly)

Returns the value of attribute member_id.



5
6
7
# File 'app/models/kafka_command/group_member.rb', line 5

def member_id
  @member_id
end

#topic_assignmentObject (readonly)

Returns the value of attribute topic_assignment.



5
6
7
# File 'app/models/kafka_command/group_member.rb', line 5

def topic_assignment
  @topic_assignment
end

Instance Method Details

#topic_namesObject



14
15
16
# File 'app/models/kafka_command/group_member.rb', line 14

def topic_names
  @topic_assignment.keys
end