Class: Grocer::PassbookNotification

Inherits:
Notification show all
Defined in:
lib/grocer/passbook_notification.rb

Overview

Public: A specialized form of a Grocer::Notification which requires neither an alert nor badge to be present in the payload. It requires only the ‘device_token`, and allows an optional `expiry` and `identifier` to be set.

Examples

Grocer::PassbookNotification.new(device_token: '...')

Constant Summary

Constants inherited from Notification

Notification::CONTENT_AVAILABLE_INDICATOR, Notification::MAX_PAYLOAD_SIZE

Instance Attribute Summary

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