Class: SXS::Publishers::Redis
- Inherits:
-
Object
- Object
- SXS::Publishers::Redis
- Defined in:
- lib/sxs/publishers/redis.rb
Instance Method Summary collapse
-
#initialize(queue_url) ⇒ Redis
constructor
A new instance of Redis.
- #publish(body) ⇒ Object
Constructor Details
#initialize(queue_url) ⇒ Redis
Returns a new instance of Redis.
6 7 8 |
# File 'lib/sxs/publishers/redis.rb', line 6 def initialize(queue_url) @queue_url = queue_url end |
Instance Method Details
#publish(body) ⇒ Object
10 11 12 |
# File 'lib/sxs/publishers/redis.rb', line 10 def publish(body) redis.rpush @queue_url, body end |