Class: Grocer::NewsstandNotification
- Inherits:
-
Notification
- Object
- Notification
- Grocer::NewsstandNotification
- Defined in:
- lib/grocer/newsstand_notification.rb
Overview
Constant Summary
Constants inherited from Notification
Grocer::Notification::CONTENT_AVAILABLE_INDICATOR, Grocer::Notification::MAX_PAYLOAD_SIZE
Instance Attribute Summary
Attributes inherited from Notification
#alert, #badge, #category, #content_available, #custom, #device_token, #expiry, #identifier, #sound
Instance Method Summary collapse
-
#initialize(payload = {}) ⇒ NewsstandNotification
constructor
A new instance of NewsstandNotification.
Methods inherited from Notification
#content_available?, #to_bytes, #valid?
Constructor Details
#initialize(payload = {}) ⇒ NewsstandNotification
Returns a new instance of NewsstandNotification.
14 15 16 |
# File 'lib/grocer/newsstand_notification.rb', line 14 def initialize(payload = {}) super(payload.merge(content_available: true)) end |