Class: DSP::DataBreakpointInfoResponse

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

Overview

interface DataBreakpointInfoResponse extends Response {

    body: {
        /** An identifier for the data on which a data breakpoint can be registered with the setDataBreakpoints request or null if no data breakpoint is available. */
        dataId: string | null;
        /** UI string that describes on what data the breakpoint is set on or why a data breakpoint is not available. */
        description: string;
        /** Optional attribute listing the available access types for a potential data breakpoint. A UI frontend could surface this information. */
        accessTypes?: DataBreakpointAccessType[];
        /** Optional attribute indicating that a potential data breakpoint could be persisted across sessions. */
        canPersist?: boolean;
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ DataBreakpointInfoResponse

Returns a new instance of DataBreakpointInfoResponse.



1649
1650
1651
1652
# File 'lib/dsp/dsp_protocol.rb', line 1649

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

Instance Attribute Details

#bodyObject

type: {



1637
1638
1639
# File 'lib/dsp/dsp_protocol.rb', line 1637

def body
  @body
end

#commandObject

type: {



1637
1638
1639
# File 'lib/dsp/dsp_protocol.rb', line 1637

def command
  @command
end

#messageObject

type: {



1637
1638
1639
# File 'lib/dsp/dsp_protocol.rb', line 1637

def message
  @message
end

#request_seqObject

/** An identifier for the data on which a data breakpoint can be registered with the setDataBreakpoints request or null if no data breakpoint is available. */

    dataId: string | null;
    /** UI string that describes on what data the breakpoint is set on or why a data breakpoint is not available. */
    description: string;
    /** Optional attribute listing the available access types for a potential data breakpoint. A UI frontend could surface this information. */
    accessTypes?: DataBreakpointAccessType[];
    /** Optional attribute indicating that a potential data breakpoint could be persisted across sessions. */
    canPersist?: boolean;
}


1647
1648
1649
# File 'lib/dsp/dsp_protocol.rb', line 1647

def request_seq
  @request_seq
end

#seqObject

type: {



1637
1638
1639
# File 'lib/dsp/dsp_protocol.rb', line 1637

def seq
  @seq
end

#successObject

type: {



1637
1638
1639
# File 'lib/dsp/dsp_protocol.rb', line 1637

def success
  @success
end

#typeObject

type: {



1637
1638
1639
# File 'lib/dsp/dsp_protocol.rb', line 1637

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
# File 'lib/dsp/dsp_protocol.rb', line 1654

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