Class: AcpcTableManager::Sender
- Inherits:
-
CommunicatorComponent
- Object
- CommunicatorComponent
- AcpcTableManager::Sender
- Defined in:
- lib/acpc_table_manager.rb
Instance Attribute Summary
Attributes inherited from CommunicatorComponent
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from CommunicatorComponent
Constructor Details
This class inherits a constructor from AcpcTableManager::CommunicatorComponent
Class Method Details
.channel_from_id(id) ⇒ Object
69 |
# File 'lib/acpc_table_manager.rb', line 69 def self.channel_from_id(id) "#{id}-from-proxy" end |
Instance Method Details
#publish(data) ⇒ Object
70 71 72 73 |
# File 'lib/acpc_table_manager.rb', line 70 def publish(data) @redis.rpush @channel, data @redis.publish @channel, data end |