Class: DSP::StepInTarget

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

Overview

interface StepInTarget {

    /** Unique identifier for a stepIn target. */
    id: number;
    /** The name of the stepIn target (shown in the UI). */
    label: string;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from DSP::DSPBase

Instance Attribute Details

#idObject

type: number # type: string



4317
4318
4319
# File 'lib/dsp/dsp_protocol.rb', line 4317

def id
  @id
end

#labelObject

type: number # type: string



4317
4318
4319
# File 'lib/dsp/dsp_protocol.rb', line 4317

def label
  @label
end

Instance Method Details

#from_h!(value) ⇒ Object



4319
4320
4321
4322
4323
4324
# File 'lib/dsp/dsp_protocol.rb', line 4319

def from_h!(value)
  value = {} if value.nil?
  self.id = value['id']
  self.label = value['label']
  self
end