Class: Karafka::Web::Ui::Models::ConsumerGroup
- Inherits:
-
Lib::HashProxy
- Object
- Lib::HashProxy
- Karafka::Web::Ui::Models::ConsumerGroup
- Defined in:
- lib/karafka/web/ui/models/consumer_group.rb
Overview
Representation of data of a Karafka consumer group
Instance Method Summary collapse
-
#subscription_groups ⇒ Array<SubscriptionGroup>
Data of topics belonging to this consumer group.
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_groups ⇒ Array<SubscriptionGroup>
Returns Data of topics belonging to this consumer group.
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 |