Sha256: 6fe8fb3dcb16019c533842d3d33e32548a394f62c7707b3b0e71dae0f71df929
Contents?: true
Size: 481 Bytes
Versions: 3
Compression:
Stored size: 481 Bytes
Contents
# frozen_string_literal: true module Loco module Emitter def emit(obj, event = nil, opts = {}) Broadcaster.new(obj, event, opts).emit end def emit_to(recipient, data) Sender.new(recipient, data).emit end def add_hub(name, members = []) Hub.new(name, members).save end def get_hub(name) Hub.get name end def del_hub(name) hub = Hub.get name return false if hub.nil? hub.destroy end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loco-rails-4.1.1 | lib/loco/emitter.rb |
loco-rails-4.1.0 | lib/loco/emitter.rb |
loco-rails-4.0.0 | lib/loco/emitter.rb |