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.



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

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.



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

def channel
  @channel
end

Instance Method Details

#delObject



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

def del() @redis.del @channel end