Class: DSP::ThreadEvent
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
-
#body ⇒ Object
type: {.
-
#event ⇒ Object
/** The reason for the event.
-
#seq ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
Methods inherited from DSPBase
Constructor Details
This class inherits a constructor from DSP::DSPBase
Instance Attribute Details
#body ⇒ Object
type: {
390 391 392 |
# File 'lib/dsp/dsp_protocol.rb', line 390 def body @body end |
#event ⇒ Object
/** 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 |
#seq ⇒ Object
type: {
390 391 392 |
# File 'lib/dsp/dsp_protocol.rb', line 390 def seq @seq end |
#type ⇒ Object
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 |