Class: DeviceCloud::PushNotification::AlertNotification

Inherits:
BaseNotification show all
Defined in:
lib/device_cloud/push_notification/alert_notification.rb

Instance Attribute Summary

Attributes inherited from BaseNotification

#device_id, #full_path, #id, #queued_at, #type, #value

Instance Method Summary collapse

Methods inherited from BaseNotification

#data, #file_name, handle!, handle_no_content!, #initialize, #mac_address, #raw_data

Constructor Details

This class inherits a constructor from DeviceCloud::PushNotification::BaseNotification

Instance Method Details

#handle!Object



3
4
5
# File 'lib/device_cloud/push_notification/alert_notification.rb', line 3

def handle!
  DeviceCloud.alert_notification_handler.call(self)
end

#handle_no_content!Object



7
8
9
# File 'lib/device_cloud/push_notification/alert_notification.rb', line 7

def handle_no_content!
  DeviceCloud.empty_alert_notification_handler.call(self)
end