Class: DSP::ScopesResponse

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

Overview

interface ScopesResponse extends Response {

    body: {
        /** The scopes of the stackframe. If the array has length zero, there are no scopes available. */
        scopes: Scope[];
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ScopesResponse

Returns a new instance of ScopesResponse.



2358
2359
2360
2361
# File 'lib/dsp/dsp_protocol.rb', line 2358

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

Instance Attribute Details

#bodyObject

type: {



2352
2353
2354
# File 'lib/dsp/dsp_protocol.rb', line 2352

def body
  @body
end

#commandObject

type: {



2352
2353
2354
# File 'lib/dsp/dsp_protocol.rb', line 2352

def command
  @command
end

#messageObject

type: {



2352
2353
2354
# File 'lib/dsp/dsp_protocol.rb', line 2352

def message
  @message
end

#request_seqObject

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

    scopes: Scope[];
}


2356
2357
2358
# File 'lib/dsp/dsp_protocol.rb', line 2356

def request_seq
  @request_seq
end

#seqObject

type: {



2352
2353
2354
# File 'lib/dsp/dsp_protocol.rb', line 2352

def seq
  @seq
end

#successObject

type: {



2352
2353
2354
# File 'lib/dsp/dsp_protocol.rb', line 2352

def success
  @success
end

#typeObject

type: {



2352
2353
2354
# File 'lib/dsp/dsp_protocol.rb', line 2352

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
# File 'lib/dsp/dsp_protocol.rb', line 2363

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