Class: DSP::DisassembleResponse

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

Overview

interface DisassembleResponse extends Response {

    body?: {
        /** The list of disassembled instructions. */
        instructions: DisassembledInstruction[];
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DisassembleResponse

Returns a new instance of DisassembleResponse.



3563
3564
3565
3566
# File 'lib/dsp/dsp_protocol.rb', line 3563

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

Instance Attribute Details

#bodyObject

type: {



3557
3558
3559
# File 'lib/dsp/dsp_protocol.rb', line 3557

def body
  @body
end

#commandObject

type: {



3557
3558
3559
# File 'lib/dsp/dsp_protocol.rb', line 3557

def command
  @command
end

#messageObject

type: {



3557
3558
3559
# File 'lib/dsp/dsp_protocol.rb', line 3557

def message
  @message
end

#request_seqObject

/** The list of disassembled instructions. */

    instructions: DisassembledInstruction[];
}


3561
3562
3563
# File 'lib/dsp/dsp_protocol.rb', line 3561

def request_seq
  @request_seq
end

#seqObject

type: {



3557
3558
3559
# File 'lib/dsp/dsp_protocol.rb', line 3557

def seq
  @seq
end

#successObject

type: {



3557
3558
3559
# File 'lib/dsp/dsp_protocol.rb', line 3557

def success
  @success
end

#typeObject

type: {



3557
3558
3559
# File 'lib/dsp/dsp_protocol.rb', line 3557

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
# File 'lib/dsp/dsp_protocol.rb', line 3568

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