Class: Cosmos::NotificationsTopic

Inherits:
Topic show all
Defined in:
lib/cosmos/topics/notifications_topic.rb

Class Method Summary collapse

Methods inherited from Topic

clear_topics, initialize_streams, read_topics, topics

Class Method Details

.write_notification(notification, scope:) ⇒ Object



24
25
26
# File 'lib/cosmos/topics/notifications_topic.rb', line 24

def self.write_notification(notification, scope:)
  Store.write_topic("#{scope}__cosmos_notifications", notification)
end