module Nagare::Publisher::ClassMethods
Class methods that get injected into a class or module that extends Publisher
Attributes
redis_publisher_stream[RW]
Public Instance Methods
stream(name)
click to toggle source
Defines which stream to use for publish when none is specified
The stream is automatically created by Redis if it doesn't exist when a message is first published to it.
Defaults to the name of the class publishing the message
@param [String] name name of the stream
# File lib/nagare/publisher.rb, line 23 def stream(name) self.redis_publisher_stream = name.to_s end