Class: DSP::Module

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

Overview

interface Module {

    /** Unique identifier for the module. */
    id: number | string;
    /** A name of the module. */
    name: string;
    /** optional but recommended attributes.
        always try to use these first before introducing additional attributes.

        Logical full path to the module. The exact definition is implementation defined, but usually this would be a full path to the on-disk file for the module.
    */
    path?: string;
    /** True if the module is optimized. */
    isOptimized?: boolean;
    /** True if the module is considered 'user code' by a debugger that supports 'Just My Code'. */
    isUserCode?: boolean;
    /** Version of Module. */
    version?: string;
    /** User understandable description of if symbols were found for the module (ex: 'Symbols Loaded', 'Symbols not found', etc. */
    symbolStatus?: string;
    /** Logical full path to the symbol file. The exact definition is implementation defined. */
    symbolFilePath?: string;
    /** Module created or modified. */
    dateTimeStamp?: string;
    /** Address range covered by this module. */
    addressRange?: string;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ Module

Returns a new instance of Module.



3794
3795
3796
3797
# File 'lib/dsp/dsp_protocol.rb', line 3794

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[path isOptimized isUserCode version symbolStatus symbolFilePath dateTimeStamp addressRange]
end

Instance Attribute Details

#addressRangeObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def addressRange
  @addressRange
end

#dateTimeStampObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def dateTimeStamp
  @dateTimeStamp
end

#idObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def id
  @id
end

#isOptimizedObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def isOptimized
  @isOptimized
end

#isUserCodeObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def isUserCode
  @isUserCode
end

#nameObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def name
  @name
end

#pathObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def path
  @path
end

#symbolFilePathObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def symbolFilePath
  @symbolFilePath
end

#symbolStatusObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def symbolStatus
  @symbolStatus
end

#versionObject

type: number | string # type: string # type: string # type: boolean # type: boolean # type: string # type: string # type: string # type: string # type: string



3792
3793
3794
# File 'lib/dsp/dsp_protocol.rb', line 3792

def version
  @version
end

Instance Method Details

#from_h!(value) ⇒ Object



3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
# File 'lib/dsp/dsp_protocol.rb', line 3799

def from_h!(value)
  value = {} if value.nil?
  self.id = value['id'] # Unknown type
  self.name = value['name']
  self.path = value['path']
  self.isOptimized = value['isOptimized'] # Unknown type
  self.isUserCode = value['isUserCode'] # Unknown type
  self.version = value['version']
  self.symbolStatus = value['symbolStatus']
  self.symbolFilePath = value['symbolFilePath']
  self.dateTimeStamp = value['dateTimeStamp']
  self.addressRange = value['addressRange']
  self
end