Class: DSP::SetExpressionArguments
- 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
-
#expression ⇒ Object
type: string # type: string # type: number # type: ValueFormat.
-
#format ⇒ Object
type: string # type: string # type: number # type: ValueFormat.
-
#frameId ⇒ Object
type: string # type: string # type: number # type: ValueFormat.
-
#value ⇒ Object
type: string # type: string # type: number # type: ValueFormat.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ SetExpressionArguments
constructor
A new instance of SetExpressionArguments.
Methods inherited from DSPBase
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
#expression ⇒ Object
type: string # type: string # type: number # type: ValueFormat
3044 3045 3046 |
# File 'lib/dsp/dsp_protocol.rb', line 3044 def expression @expression end |
#format ⇒ Object
type: string # type: string # type: number # type: ValueFormat
3044 3045 3046 |
# File 'lib/dsp/dsp_protocol.rb', line 3044 def format @format end |
#frameId ⇒ Object
type: string # type: string # type: number # type: ValueFormat
3044 3045 3046 |
# File 'lib/dsp/dsp_protocol.rb', line 3044 def frameId @frameId end |
#value ⇒ Object
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 |