Class: MultipleMan::ChannelMaintenance::GC::RemoveCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/multiple_man/channel_maintenance/gc.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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