Module: Wupee
- Defined in:
- lib/wupee.rb,
lib/wupee/engine.rb,
lib/wupee/version.rb,
lib/wupee/notifier.rb,
app/models/concerns/wupee/receiver.rb,
app/mailers/wupee/notifications_mailer.rb,
app/models/concerns/wupee/attached_object.rb,
app/controllers/wupee/application_controller.rb,
app/controllers/wupee/api/notifications_controller.rb
Defined Under Namespace
Modules: AttachedObject, Receiver
Classes: ApplicationController, Engine, InstallGenerator, Notification, NotificationType, NotificationTypeConfiguration, NotificationTypeGenerator, NotificationsMailer, Notifier
Constant Summary
collapse
- VERSION =
"1.1.4"
Class Method Summary
collapse
Class Method Details
.notify(opts = {}) {|wupee_notifier| ... } ⇒ Object
8
9
10
11
12
|
# File 'lib/wupee.rb', line 8
def self.notify(opts = {}, &block)
wupee_notifier = Wupee::Notifier.new(opts)
yield wupee_notifier if block_given?
wupee_notifier.execute
end
|
.receivers=(klass) ⇒ Object
14
15
16
17
|
# File 'lib/wupee.rb', line 14
def self.receivers=(klass)
@@receivers = klass
Wupee::NotificationType.create_configurations_for(klass)
end
|