Class: DSP::TerminateThreadsArguments

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

Overview

interface TerminateThreadsArguments {

    /** Ids of threads to be terminated. */
    threadIds?: number[];
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

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

#threadIdsObject

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