Class: AcpcTableManager::CommunicatorComponent

Inherits:
Object
  • Object
show all
Defined in:
lib/acpc_table_manager.rb

Direct Known Subclasses

Receiver, Sender

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ CommunicatorComponent

Returns a new instance of CommunicatorComponent.



43
44
45
46
# File 'lib/acpc_table_manager.rb', line 43

def initialize(id)
  @channel = self.class.channel_from_id(id)
  @redis = AcpcTableManager.new_redis_connection()
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



42
43
44
# File 'lib/acpc_table_manager.rb', line 42

def channel
  @channel
end

Instance Method Details

#delObject



47
# File 'lib/acpc_table_manager.rb', line 47

def del() @redis.del @channel end