Class: Readapt::Message::Threads

Inherits:
Base
  • Object
show all
Defined in:
lib/readapt/message/threads.rb

Instance Attribute Summary

Attributes inherited from Base

#arguments, #debugger

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

#runObject



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