Class: DSP::TerminateRequest
Overview
interface TerminateRequest extends Request {
arguments?: TerminateArguments;
}
Instance Attribute Summary collapse
-
#arguments ⇒ Object
type: TerminateArguments # type: string # type: number # type: string.
-
#command ⇒ Object
type: TerminateArguments # type: string # type: number # type: string.
-
#seq ⇒ Object
type: TerminateArguments # type: string # type: number # type: string.
-
#type ⇒ Object
type: TerminateArguments # type: string # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ TerminateRequest
constructor
A new instance of TerminateRequest.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ TerminateRequest
Returns a new instance of TerminateRequest.
1241 1242 1243 1244 |
# File 'lib/dsp/dsp_protocol.rb', line 1241 def initialize(initial_hash = nil) super @optional_method_names = %i[arguments] end |
Instance Attribute Details
#arguments ⇒ Object
type: TerminateArguments # type: string # type: number # type: string
1239 1240 1241 |
# File 'lib/dsp/dsp_protocol.rb', line 1239 def arguments @arguments end |
#command ⇒ Object
type: TerminateArguments # type: string # type: number # type: string
1239 1240 1241 |
# File 'lib/dsp/dsp_protocol.rb', line 1239 def command @command end |
#seq ⇒ Object
type: TerminateArguments # type: string # type: number # type: string
1239 1240 1241 |
# File 'lib/dsp/dsp_protocol.rb', line 1239 def seq @seq end |
#type ⇒ Object
type: TerminateArguments # type: string # type: number # type: string
1239 1240 1241 |
# File 'lib/dsp/dsp_protocol.rb', line 1239 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
1246 1247 1248 1249 1250 1251 1252 1253 |
# File 'lib/dsp/dsp_protocol.rb', line 1246 def from_h!(value) value = {} if value.nil? self.arguments = TerminateArguments.new(value['arguments']) unless value['arguments'].nil? self.command = value['command'] self.seq = value['seq'] self.type = value['type'] self end |