Class: Karafka::Web::Ui::Models::ConsumerGroup

Inherits:
Lib::HashProxy show all
Defined in:
lib/karafka/web/ui/models/consumer_group.rb

Overview

Representation of data of a Karafka consumer group

Instance Method Summary collapse

Methods inherited from Lib::HashProxy

#initialize, #method_missing, #respond_to_missing?, #to_h

Constructor Details

This class inherits a constructor from Karafka::Web::Ui::Lib::HashProxy

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Karafka::Web::Ui::Lib::HashProxy

Instance Method Details

#subscription_groupsArray<SubscriptionGroup>

Returns Data of topics belonging to this consumer group.

Returns:



11
12
13
14
15
16
# File 'lib/karafka/web/ui/models/consumer_group.rb', line 11

def subscription_groups
  super
    .values
    .map { |sg_hash| SubscriptionGroup.new(sg_hash) }
    .sort_by(&:id)
end