Class: DSP::ThreadEvent

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

Overview

interface ThreadEvent extends Event { body: { /** The reason for the event. Values: 'started', 'exited', etc. / reason: string; /* The identifier of the thread. */ threadId: 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: {



390
391
392
# File 'lib/dsp/dsp_protocol.rb', line 390

def body
  @body
end

#eventObject

/** The reason for the event. Values: 'started', 'exited', etc. / reason: string; /* The identifier of the thread. */ threadId: number; }



398
399
400
# File 'lib/dsp/dsp_protocol.rb', line 398

def event
  @event
end

#seqObject

type: {



390
391
392
# File 'lib/dsp/dsp_protocol.rb', line 390

def seq
  @seq
end

#typeObject

type: {



390
391
392
# File 'lib/dsp/dsp_protocol.rb', line 390

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



400
401
402
403
404
405
406
407
# File 'lib/dsp/dsp_protocol.rb', line 400

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