Class: AcpcTableManager::Sender

Inherits:
CommunicatorComponent show all
Defined in:
lib/acpc_table_manager.rb

Instance Attribute Summary

Attributes inherited from CommunicatorComponent

#channel

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from CommunicatorComponent

#del, #initialize

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