Class: DSP::ExitedEvent

Inherits:
DSPBase show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface ExitedEvent extends Event {

    body: {
        /** The exit code returned from the debuggee. */
        exitCode: number;
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from DSP::DSPBase

Instance Attribute Details

#bodyObject

type: {



331
332
333
# File 'lib/dsp/dsp_protocol.rb', line 331

def body
  @body
end

#eventObject

/** The exit code returned from the debuggee. */

    exitCode: number;
}


335
336
337
# File 'lib/dsp/dsp_protocol.rb', line 335

def event
  @event
end

#seqObject

type: {



331
332
333
# File 'lib/dsp/dsp_protocol.rb', line 331

def seq
  @seq
end

#typeObject

type: {



331
332
333
# File 'lib/dsp/dsp_protocol.rb', line 331

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



337
338
339
340
341
342
343
344
# File 'lib/dsp/dsp_protocol.rb', line 337

def from_h!(value)
  value = {} if value.nil?
  self.body = value['body'] # Unknown type
  self.event = value['event']
  self.seq = value['seq']
  self.type = value['type']
  self
end