class RedisAlerting::RedisPublisher
Public Class Methods
new(redis)
click to toggle source
# File lib/redis_alerting/redis_publisher.rb, line 5 def initialize(redis) @client = redis end
Public Instance Methods
publish(channel, message)
click to toggle source
# File lib/redis_alerting/redis_publisher.rb, line 9 def publish(channel, message) @client.publish(channel, message.to_json) end