Class: SXS::Publishers::Redis

Inherits:
Object
  • Object
show all
Defined in:
lib/sxs/publishers/redis.rb

Instance Method Summary collapse

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