Class: PubnubChannel

Inherits:
Object
  • Object
show all
Defined in:
lib/notify_user/channels/pubnub/pubnub_channel.rb

Class Method Summary collapse

Class Method Details

.default_optionsObject



5
6
7
8
9
# File 'lib/notify_user/channels/pubnub/pubnub_channel.rb', line 5

def default_options
  {
    description: "PubNub Notifications"
  }
end

.deliver(notification, options = {}) ⇒ Object



11
12
13
# File 'lib/notify_user/channels/pubnub/pubnub_channel.rb', line 11

def deliver(notification, options={})
  NotifyUser::PubNub.push_notification(notification)
end