Class: DSP::StackTraceResponse

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

Overview

interface StackTraceResponse extends Response {

    body: {
        /** The frames of the stackframe. If the array has length zero, there are no stackframes available.
            This means that there is no location information available.
        */
        stackFrames: StackFrame[];
        /** The total number of frames available. */
        totalFrames?: number;
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ StackTraceResponse

Returns a new instance of StackTraceResponse.



2297
2298
2299
2300
# File 'lib/dsp/dsp_protocol.rb', line 2297

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

Instance Attribute Details

#bodyObject

type: {



2287
2288
2289
# File 'lib/dsp/dsp_protocol.rb', line 2287

def body
  @body
end

#commandObject

type: {



2287
2288
2289
# File 'lib/dsp/dsp_protocol.rb', line 2287

def command
  @command
end

#messageObject

type: {



2287
2288
2289
# File 'lib/dsp/dsp_protocol.rb', line 2287

def message
  @message
end

#request_seqObject

/** The frames of the stackframe. If the array has length zero, there are no stackframes available.

        This means that there is no location information available.
    */
    stackFrames: StackFrame[];
    /** The total number of frames available. */
    totalFrames?: number;
}


2295
2296
2297
# File 'lib/dsp/dsp_protocol.rb', line 2295

def request_seq
  @request_seq
end

#seqObject

type: {



2287
2288
2289
# File 'lib/dsp/dsp_protocol.rb', line 2287

def seq
  @seq
end

#successObject

type: {



2287
2288
2289
# File 'lib/dsp/dsp_protocol.rb', line 2287

def success
  @success
end

#typeObject

type: {



2287
2288
2289
# File 'lib/dsp/dsp_protocol.rb', line 2287

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
# File 'lib/dsp/dsp_protocol.rb', line 2302

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