module PubsubNotifier

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/pubsub_notifier.rb, line 9
def self.config
  @_config ||= Config.new
end
configure() { |config| ... } click to toggle source
# File lib/pubsub_notifier.rb, line 5
def self.configure
  yield config
end
init!() click to toggle source
# File lib/pubsub_notifier.rb, line 21
def self.init!
  register_client :logger, PubsubNotifier::Client::LoggerClient
end
register_broadcaster(name, klass) click to toggle source
# File lib/pubsub_notifier.rb, line 17
def self.register_broadcaster(name, klass)
  Wisper.configuration.broadcaster(name.to_sym, klass.new)
end
register_client(name, klass) click to toggle source
# File lib/pubsub_notifier.rb, line 13
def self.register_client(name, klass)
  config.clients[name.to_sym] = klass
end