Class: Peatio::Ranger::Events
- Inherits:
-
Object
- Object
- Peatio::Ranger::Events
- Defined in:
- lib/peatio/ranger/events.rb
Class Method Summary collapse
Class Method Details
.publish(type, id, event, payload, opts = {}) ⇒ Object
5 6 7 8 9 |
# File 'lib/peatio/ranger/events.rb', line 5 def self.publish(type, id, event, payload, opts={}) ex_name = opts[:ex_name] || "peatio.events.ranger" @client ||= Peatio::MQ::Client.new @client.publish(ex_name, type, id, event, payload) end |