Class: MultipleMan::ChannelMaintenance::GC::RemoveCommand
- Inherits:
-
Object
- Object
- MultipleMan::ChannelMaintenance::GC::RemoveCommand
- Defined in:
- lib/multiple_man/channel_maintenance/gc.rb
Instance Attribute Summary collapse
-
#thread_id ⇒ Object
readonly
Returns the value of attribute thread_id.
Instance Method Summary collapse
- #execute(channels_by_thread) ⇒ Object
-
#initialize(thread_id) ⇒ RemoveCommand
constructor
A new instance of RemoveCommand.
Constructor Details
#initialize(thread_id) ⇒ RemoveCommand
Returns a new instance of RemoveCommand.
73 74 75 |
# File 'lib/multiple_man/channel_maintenance/gc.rb', line 73 def initialize(thread_id) @thread_id = thread_id end |
Instance Attribute Details
#thread_id ⇒ Object (readonly)
Returns the value of attribute thread_id.
71 72 73 |
# File 'lib/multiple_man/channel_maintenance/gc.rb', line 71 def thread_id @thread_id end |
Instance Method Details
#execute(channels_by_thread) ⇒ Object
77 78 79 |
# File 'lib/multiple_man/channel_maintenance/gc.rb', line 77 def execute(channels_by_thread) channels_by_thread.delete(thread_id) end |