Method: Pytty::Daemon::ProcessYield#to_json
- Defined in:
- lib/pytty/daemon/process_yield.rb
#to_json(json_generator_state = nil) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'lib/pytty/daemon/process_yield.rb', line 25 def to_json(json_generator_state=nil) { id: @id, pid: @pid, cmd: @cmd, env: @env, running: running? }.to_json end |