Class: DSP::SetExpressionArguments

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

Overview

interface SetExpressionArguments {

    /** The l-value expression to assign to. */
    expression: string;
    /** The value expression to assign to the l-value expression. */
    value: string;
    /** Evaluate the expressions in the scope of this stack frame. If not specified, the expressions are evaluated in the global scope. */
    frameId?: number;
    /** Specifies how the resulting value should be formatted. */
    format?: ValueFormat;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ SetExpressionArguments

Returns a new instance of SetExpressionArguments.



3046
3047
3048
3049
# File 'lib/dsp/dsp_protocol.rb', line 3046

def initialize(initial_hash = nil)
  super
  @optional_method_names = i[frameId format]
end

Instance Attribute Details

#expressionObject

type: string # type: string # type: number # type: ValueFormat



3044
3045
3046
# File 'lib/dsp/dsp_protocol.rb', line 3044

def expression
  @expression
end

#formatObject

type: string # type: string # type: number # type: ValueFormat



3044
3045
3046
# File 'lib/dsp/dsp_protocol.rb', line 3044

def format
  @format
end

#frameIdObject

type: string # type: string # type: number # type: ValueFormat



3044
3045
3046
# File 'lib/dsp/dsp_protocol.rb', line 3044

def frameId
  @frameId
end

#valueObject

type: string # type: string # type: number # type: ValueFormat



3044
3045
3046
# File 'lib/dsp/dsp_protocol.rb', line 3044

def value
  @value
end

Instance Method Details

#from_h!(value) ⇒ Object



3051
3052
3053
3054
3055
3056
3057
3058
# File 'lib/dsp/dsp_protocol.rb', line 3051

def from_h!(value)
  value = {} if value.nil?
  self.expression = value['expression']
  self.value = value['value']
  self.frameId = value['frameId']
  self.format = ValueFormat.new(value['format']) unless value['format'].nil?
  self
end