Class: DSP::TerminateArguments

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

Overview

interface TerminateArguments {

    /** A value of true indicates that this 'terminate' request is part of a restart sequence. */
    restart?: boolean;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ TerminateArguments

Returns a new instance of TerminateArguments.



1263
1264
1265
1266
# File 'lib/dsp/dsp_protocol.rb', line 1263

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[restart]
end

Instance Attribute Details

#restartObject

type: boolean



1261
1262
1263
# File 'lib/dsp/dsp_protocol.rb', line 1261

def restart
  @restart
end

Instance Method Details

#from_h!(value) ⇒ Object



1268
1269
1270
1271
1272
# File 'lib/dsp/dsp_protocol.rb', line 1268

def from_h!(value)
  value = {} if value.nil?
  self.restart = value['restart'] # Unknown type
  self
end