Module: PgNotifier
- Defined in:
- lib/pg_notifier.rb,
lib/pg_notifier/manager.rb,
lib/pg_notifier/version.rb,
lib/pg_notifier/subscription.rb
Defined Under Namespace
Classes: Manager, Subscription
Constant Summary
collapse
- VERSION =
"0.0.1"
Class Method Summary
collapse
Class Method Details
19
20
21
|
# File 'lib/pg_notifier.rb', line 19
def configure(&block)
manager.tap(&block)
end
|
.manager ⇒ Object
7
8
9
|
# File 'lib/pg_notifier.rb', line 7
def manager
@manager ||= Manager.new
end
|
.notify(channel, options = {}, &block) ⇒ Object
15
16
17
|
# File 'lib/pg_notifier.rb', line 15
def notify(channel, options = {}, &block)
manager.notify(channel, options, &block)
end
|
.run ⇒ Object
11
12
13
|
# File 'lib/pg_notifier.rb', line 11
def run
manager.run
end
|