class RubyRabbitmqJanus::Rabbit::Listener::From
@author VAILLANT Jeremy <jeremy.vaillant@dazzl.tv>
This publisher don't post message. Is listen just an standard queue to Janus
. By default is “from-janus”. It's a parameter in config to this gem.
Private Instance Methods
reply()
click to toggle source
# File lib/rrj/rabbit/listener/from.rb, line 14 def reply rabbit.queue(Tools::Config.instance.queue_from) end
response_class(payload)
click to toggle source
# File lib/rrj/rabbit/listener/from.rb, line 18 def response_class(payload) Janus::Responses::Event.new(JSON.parse(payload)) end