Class: DSP::RestartRequest
Overview
interface RestartRequest extends Request {
arguments?: RestartArguments;
}
Instance Attribute Summary collapse
-
#arguments ⇒ Object
type: RestartArguments # type: string # type: number # type: string.
-
#command ⇒ Object
type: RestartArguments # type: string # type: number # type: string.
-
#seq ⇒ Object
type: RestartArguments # type: string # type: number # type: string.
-
#type ⇒ Object
type: RestartArguments # type: string # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ RestartRequest
constructor
A new instance of RestartRequest.
Methods inherited from DSPBase
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
#arguments ⇒ Object
type: RestartArguments # type: string # type: number # type: string
1116 1117 1118 |
# File 'lib/dsp/dsp_protocol.rb', line 1116 def arguments @arguments end |
#command ⇒ Object
type: RestartArguments # type: string # type: number # type: string
1116 1117 1118 |
# File 'lib/dsp/dsp_protocol.rb', line 1116 def command @command end |
#seq ⇒ Object
type: RestartArguments # type: string # type: number # type: string
1116 1117 1118 |
# File 'lib/dsp/dsp_protocol.rb', line 1116 def seq @seq end |
#type ⇒ Object
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 |