Class: DSP::DisassembleResponse
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface DisassembleResponse extends Response {
body?: {
/** The list of disassembled instructions. */
instructions: DisassembledInstruction[];
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#command ⇒ Object
type: {.
-
#message ⇒ Object
type: {.
-
#request_seq ⇒ Object
/** The list of disassembled instructions.
-
#seq ⇒ Object
type: {.
-
#success ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DisassembleResponse
constructor
A new instance of DisassembleResponse.
Methods inherited from DSPBase
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
#body ⇒ Object
type: {
3557 3558 3559 |
# File 'lib/dsp/dsp_protocol.rb', line 3557 def body @body end |
#command ⇒ Object
type: {
3557 3558 3559 |
# File 'lib/dsp/dsp_protocol.rb', line 3557 def command @command end |
#message ⇒ Object
type: {
3557 3558 3559 |
# File 'lib/dsp/dsp_protocol.rb', line 3557 def @message end |
#request_seq ⇒ Object
/** The list of disassembled instructions. */
instructions: DisassembledInstruction[];
}
3561 3562 3563 |
# File 'lib/dsp/dsp_protocol.rb', line 3561 def request_seq @request_seq end |
#seq ⇒ Object
type: {
3557 3558 3559 |
# File 'lib/dsp/dsp_protocol.rb', line 3557 def seq @seq end |
#success ⇒ Object
type: {
3557 3558 3559 |
# File 'lib/dsp/dsp_protocol.rb', line 3557 def success @success end |
#type ⇒ Object
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. = value['message'] self.seq = value['seq'] self.type = value['type'] self end |