Sha256: 8ba66dd452831e02a23770fb77adf56e61a4a6e3a27aebc86c88ab88a3c8d629
Contents?: true
Size: 397 Bytes
Versions: 2
Compression:
Stored size: 397 Bytes
Contents
require "pg_notifier/version" require "pg_notifier/subscription" require "pg_notifier/manager" module PgNotifier class << self def manager @manager ||= Manager.new end def run manager.run end def notify(channel, options = {}, &block) manager.notify(channel, options, &block) end def configure(&block) manager.tap(&block) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pg_notifier-0.1.0 | lib/pg_notifier.rb |
pg_notifier-0.0.1 | lib/pg_notifier.rb |