Class: AcpcTableManager::CommunicatorComponent
- Inherits:
-
Object
- Object
- AcpcTableManager::CommunicatorComponent
- Defined in:
- lib/acpc_table_manager.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
Instance Method Summary collapse
- #del ⇒ Object
-
#initialize(id) ⇒ CommunicatorComponent
constructor
A new instance of CommunicatorComponent.
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
#channel ⇒ Object (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
#del ⇒ Object
47 |
# File 'lib/acpc_table_manager.rb', line 47 def del() @redis.del @channel end |