Class: Grocer::MobileDeviceManagementNotification

Inherits:
Notification
  • Object
show all
Defined in:
lib/grocer/mobile_device_management_notification.rb

Overview

Public: A specialized form of a Grocer::Notification which only requires a ‘push_magic` and `device_token` to be present in the payload.

Examples

Grocer::MobileDeviceManagementNotification.new(device_token: '...', push_magic: '...')

Constant Summary

Constants inherited from Notification

Notification::CONTENT_AVAILABLE_INDICATOR, Notification::MAX_PAYLOAD_SIZE

Instance Attribute Summary collapse

Attributes inherited from Notification

#alert, #badge, #category, #content_available, #custom, #device_token, #expiry, #identifier, #sound

Method Summary

Methods inherited from Notification

#content_available?, #initialize, #to_bytes, #valid?

Constructor Details

This class inherits a constructor from Grocer::Notification

Instance Attribute Details

#push_magicObject

Returns the value of attribute push_magic.



11
12
13
# File 'lib/grocer/mobile_device_management_notification.rb', line 11

def push_magic
  @push_magic
end