Module: NotifyUser

Defined in:
lib/notify_user.rb,
lib/notify_user/engine.rb,
lib/notify_user/version.rb,
app/models/notify_user/apns.rb,
app/models/notify_user/pub_nub.rb,
app/models/notify_user/user_hash.rb,
app/models/notify_user/unsubscribe.rb,
app/models/notify_user/base_notification.rb,
app/helpers/notify_user/application_helper.rb,
app/mailers/notify_user/notification_mailer.rb,
lib/generators/notify_user/notification/notification_generator.rb

Defined Under Namespace

Modules: ApplicationHelper Classes: Apns, BaseNotification, BaseNotificationsController, Engine, InstallGenerator, JsonUpdateGenerator, NotificationGenerator, NotificationMailer, NotificationSerializer, NotificationsController, PubNub, Unsubscribe, UserHash

Constant Summary collapse

VERSION =
"0.0.28"
@@mailer_sender =
nil
@@authentication_method =
nil
@@current_user_method =
nil
@@unsubscribable_notifications =
nil

Class Method Summary collapse

Class Method Details

.send_notification(type) ⇒ Object



24
25
26
# File 'lib/notify_user.rb', line 24

def self.send_notification(type)
  type.camelize.constantize.new
end

.setup {|_self| ... } ⇒ Object

Used to set up NotifyUser from the initializer.

Yields:

  • (_self)

Yield Parameters:

  • _self (NotifyUser)

    the object that the method was called on



20
21
22
# File 'lib/notify_user.rb', line 20

def self.setup
  yield self
end