Class: DSP::TerminateRequest

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

Overview

interface TerminateRequest extends Request {

    arguments?: TerminateArguments;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

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

#argumentsObject

type: TerminateArguments # type: string # type: number # type: string



1239
1240
1241
# File 'lib/dsp/dsp_protocol.rb', line 1239

def arguments
  @arguments
end

#commandObject

type: TerminateArguments # type: string # type: number # type: string



1239
1240
1241
# File 'lib/dsp/dsp_protocol.rb', line 1239

def command
  @command
end

#seqObject

type: TerminateArguments # type: string # type: number # type: string



1239
1240
1241
# File 'lib/dsp/dsp_protocol.rb', line 1239

def seq
  @seq
end

#typeObject

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