Class: DSP::RestartRequest

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

Overview

interface RestartRequest extends Request {

    arguments?: RestartArguments;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ RestartRequest

Returns a new instance of RestartRequest.



1118
1119
1120
1121
# File 'lib/dsp/dsp_protocol.rb', line 1118

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

Instance Attribute Details

#argumentsObject

type: RestartArguments # type: string # type: number # type: string



1116
1117
1118
# File 'lib/dsp/dsp_protocol.rb', line 1116

def arguments
  @arguments
end

#commandObject

type: RestartArguments # type: string # type: number # type: string



1116
1117
1118
# File 'lib/dsp/dsp_protocol.rb', line 1116

def command
  @command
end

#seqObject

type: RestartArguments # type: string # type: number # type: string



1116
1117
1118
# File 'lib/dsp/dsp_protocol.rb', line 1116

def seq
  @seq
end

#typeObject

type: RestartArguments # type: string # type: number # type: string



1116
1117
1118
# File 'lib/dsp/dsp_protocol.rb', line 1116

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



1123
1124
1125
1126
1127
1128
1129
1130
# File 'lib/dsp/dsp_protocol.rb', line 1123

def from_h!(value)
  value = {} if value.nil?
  self.arguments = RestartArguments.new(value['arguments']) unless value['arguments'].nil?
  self.command = value['command']
  self.seq = value['seq']
  self.type = value['type']
  self
end