Class: DSP::ExceptionBreakpointsFilter

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

Overview

interface ExceptionBreakpointsFilter {

    /** The internal ID of the filter. This value is passed to the setExceptionBreakpoints request. */
    filter: string;
    /** The name of the filter. This will be shown in the UI. */
    label: string;
    /** Initial value of the filter. If not specified a value 'false' is assumed. */
    default?: boolean;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ ExceptionBreakpointsFilter

Returns a new instance of ExceptionBreakpointsFilter.



3707
3708
3709
3710
# File 'lib/dsp/dsp_protocol.rb', line 3707

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

Instance Attribute Details

#defaultObject

type: string # type: string # type: boolean



3705
3706
3707
# File 'lib/dsp/dsp_protocol.rb', line 3705

def default
  @default
end

#filterObject

type: string # type: string # type: boolean



3705
3706
3707
# File 'lib/dsp/dsp_protocol.rb', line 3705

def filter
  @filter
end

#labelObject

type: string # type: string # type: boolean



3705
3706
3707
# File 'lib/dsp/dsp_protocol.rb', line 3705

def label
  @label
end

Instance Method Details

#from_h!(value) ⇒ Object



3712
3713
3714
3715
3716
3717
3718
# File 'lib/dsp/dsp_protocol.rb', line 3712

def from_h!(value)
  value = {} if value.nil?
  self.filter = value['filter']
  self.label = value['label']
  self.default = value['default'] # Unknown type
  self
end