module EventMachine::ApnManager
Attributes
config[RW]
Public Class Methods
logger()
click to toggle source
# File lib/em_apn_manager/logger.rb, line 7 def self.logger @logger ||= Logger.new(STDOUT) end
logger=(new_logger)
click to toggle source
# File lib/em_apn_manager/logger.rb, line 11 def self.logger=(new_logger) @logger = new_logger end
Public Instance Methods
push_notification(options = {})
click to toggle source
# File lib/em_apn_manager.rb, line 13 def push_notification options = {} # FIXME Check options $apn_manager_redis.publish "push-notification", { env: options[:env], cert: options[:cert], token: options[:token], message: options[:message] }.to_json end