Class: Karafka::Web::Ui::Models::SubscriptionGroup

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

Overview

Representation of data of a Karafka subscription 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

#topicsArray<Topic>

Returns Data of topics belonging to this subscription group.

Returns:

  • (Array<Topic>)

    Data of topics belonging to this subscription group



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

def topics
  super.values.map do |topic_hash|
    Topic.new(topic_hash)
  end
end