module NotificationHub::Channels::BrowserPushNotification

Attributes

default_gateway[RW]

Public Class Methods

send_message(event_code, data, options, gateway = nil) click to toggle source
# File lib/notification_hub/channels/browser_push_notification.rb, line 9
def send_message(event_code, data, options, gateway = nil)
        gateway ||= default_gateway                        
        "NotificationHub::Channels::BrowserPushNotification::#{gateway.to_s.camelize}".constantize.send_message(event_code, data, options)
end