Class: DSP::LaunchRequestArguments

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

Overview

interface LaunchRequestArguments {

    /** If noDebug is true the launch request should launch the program without enabling debugging. */
    noDebug?: boolean;
    /** Optional data from the previous, restarted session.
        The data is sent as the 'restart' attribute of the 'terminated' event.
        The client should leave the data intact.
    */
    __restart?: any;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ LaunchRequestArguments

Returns a new instance of LaunchRequestArguments.



1015
1016
1017
1018
# File 'lib/dsp/dsp_protocol.rb', line 1015

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[noDebug __restart]
end

Instance Attribute Details

#__restartObject

type: boolean # type: any



1013
1014
1015
# File 'lib/dsp/dsp_protocol.rb', line 1013

def __restart
  @__restart
end

#noDebugObject

type: boolean # type: any



1013
1014
1015
# File 'lib/dsp/dsp_protocol.rb', line 1013

def noDebug
  @noDebug
end

Instance Method Details

#from_h!(value) ⇒ Object



1020
1021
1022
1023
1024
1025
# File 'lib/dsp/dsp_protocol.rb', line 1020

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