class NotificationHubJob
Public Instance Methods
perform(method, association_model_id, event_code, data, device_details=nil, channel_code=nil, gateway_code=nil)
click to toggle source
# File lib/generators/notification_hub/templates/jobs/sidekiq_job.rb, line 5 def perform(method, association_model_id, event_code, data, device_details=nil, channel_code=nil, gateway_code=nil) if method == "deliver" NotificationHub.send_message(association_model_id, event_code, data) elsif method == "deliver_global" NotificationHub.send_global_message(event_code, data, device_details, channel_code, gateway_code) end end