class Rpush::Client::Redis::Notification
Public Class Methods
absolute_pending_namespace()
click to toggle source
# File lib/rpush/client/redis/notification.rb, line 13 def self.absolute_pending_namespace "#{absolute_namespace}:pending" end
absolute_retryable_namespace()
click to toggle source
# File lib/rpush/client/redis/notification.rb, line 17 def self.absolute_retryable_namespace "#{absolute_namespace}:retryable" end
Public Instance Methods
app()
click to toggle source
# File lib/rpush/client/redis/notification.rb, line 50 def app return nil unless app_id @app ||= Rpush::Client::Redis::App.find(app_id) end
app=(app)
click to toggle source
# File lib/rpush/client/redis/notification.rb, line 55 def app=(app) @app = app if app self.app_id = app.id else self.app_id = nil end end
Private Instance Methods
register_notification()
click to toggle source
# File lib/rpush/client/redis/notification.rb, line 66 def register_notification Modis.with_connection do |redis| redis.zadd(self.class.absolute_pending_namespace, id, id) end end