Class: Readapt::Message::Threads
- Defined in:
- lib/readapt/message/threads.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#body, #initialize, run, #set_body
Constructor Details
This class inherits a constructor from Readapt::Message::Base
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/readapt/message/threads.rb', line 6 def run set_body({ threads: debugger.threads.map do |thr| { id: thr.id, name: thr.name } end }) end |