Class: Rpush::Client::Redis::Notification
Direct Known Subclasses
Adm::Notification, Apns2::Notification, Apns::Notification, Apnsp8::Notification, Fcm::Notification, Pushy::Notification, Webpush::Notification, Wns::BadgeNotification, Wns::Notification, Wns::RawNotification, Wpns::Notification
Class Method Summary
collapse
Instance Method Summary
collapse
included, #payload, #payload_data_size
#multi_json_dump, #multi_json_load
Class Method Details
.absolute_pending_namespace ⇒ Object
13
14
15
|
# File 'lib/rpush/client/redis/notification.rb', line 13
def self.absolute_pending_namespace
"#{absolute_namespace}:pending"
end
|
.absolute_retryable_namespace ⇒ Object
17
18
19
|
# File 'lib/rpush/client/redis/notification.rb', line 17
def self.absolute_retryable_namespace
"#{absolute_namespace}:retryable"
end
|
Instance Method Details
#app ⇒ Object
52
53
54
55
|
# File 'lib/rpush/client/redis/notification.rb', line 52
def app
return nil unless app_id
@app ||= Rpush::Client::Redis::App.find(app_id)
end
|
#app=(app) ⇒ Object
57
58
59
60
61
62
63
64
|
# File 'lib/rpush/client/redis/notification.rb', line 57
def app=(app)
@app = app
if app
self.app_id = app.id
else
self.app_id = nil
end
end
|