Class: DSP::DataBreakpoint

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

Overview

interface DataBreakpoint {

    /** An id representing the data. This id is returned from the dataBreakpointInfo request. */
    dataId: string;
    /** The access type of the data. */
    accessType?: DataBreakpointAccessType;
    /** An optional expression for conditional breakpoints. */
    condition?: string;
    /** An optional expression that controls how many hits of the breakpoint are ignored.
        The backend is expected to interpret the expression as needed.
    */
    hitCondition?: string;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DataBreakpoint

Returns a new instance of DataBreakpoint.



4251
4252
4253
4254
# File 'lib/dsp/dsp_protocol.rb', line 4251

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[accessType condition hitCondition]
end

Instance Attribute Details

#accessTypeObject

type: string # type: DataBreakpointAccessType # type: string # type: string



4249
4250
4251
# File 'lib/dsp/dsp_protocol.rb', line 4249

def accessType
  @accessType
end

#conditionObject

type: string # type: DataBreakpointAccessType # type: string # type: string



4249
4250
4251
# File 'lib/dsp/dsp_protocol.rb', line 4249

def condition
  @condition
end

#dataIdObject

type: string # type: DataBreakpointAccessType # type: string # type: string



4249
4250
4251
# File 'lib/dsp/dsp_protocol.rb', line 4249

def dataId
  @dataId
end

#hitConditionObject

type: string # type: DataBreakpointAccessType # type: string # type: string



4249
4250
4251
# File 'lib/dsp/dsp_protocol.rb', line 4249

def hitCondition
  @hitCondition
end

Instance Method Details

#from_h!(value) ⇒ Object



4256
4257
4258
4259
4260
4261
4262
4263
# File 'lib/dsp/dsp_protocol.rb', line 4256

def from_h!(value)
  value = {} if value.nil?
  self.dataId = value['dataId']
  self.accessType = value['accessType'] # Unknown type
  self.condition = value['condition']
  self.hitCondition = value['hitCondition']
  self
end