Class: DSP::TerminateThreadsArguments
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface TerminateThreadsArguments {
/** Ids of threads to be terminated. */
threadIds?: number[];
}
Instance Attribute Summary collapse
-
#threadIds ⇒ Object
type: number[].
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ TerminateThreadsArguments
constructor
A new instance of TerminateThreadsArguments.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ TerminateThreadsArguments
Returns a new instance of TerminateThreadsArguments.
2712 2713 2714 2715 |
# File 'lib/dsp/dsp_protocol.rb', line 2712 def initialize(initial_hash = nil) super @optional_method_names = %i[threadIds] end |
Instance Attribute Details
#threadIds ⇒ Object
type: number[]
2710 2711 2712 |
# File 'lib/dsp/dsp_protocol.rb', line 2710 def threadIds @threadIds end |
Instance Method Details
#from_h!(value) ⇒ Object
2717 2718 2719 2720 2721 |
# File 'lib/dsp/dsp_protocol.rb', line 2717 def from_h!(value) value = {} if value.nil? self.threadIds = value['threadIds'].map { |val| val } unless value['threadIds'].nil? self end |