Class: DSP::CancelRequest

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

Overview

interface CancelRequest extends Request {

    arguments?: CancelArguments;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ CancelRequest

Returns a new instance of CancelRequest.



158
159
160
161
# File 'lib/dsp/dsp_protocol.rb', line 158

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

Instance Attribute Details

#argumentsObject

type: CancelArguments # type: string # type: number # type: string



156
157
158
# File 'lib/dsp/dsp_protocol.rb', line 156

def arguments
  @arguments
end

#commandObject

type: CancelArguments # type: string # type: number # type: string



156
157
158
# File 'lib/dsp/dsp_protocol.rb', line 156

def command
  @command
end

#seqObject

type: CancelArguments # type: string # type: number # type: string



156
157
158
# File 'lib/dsp/dsp_protocol.rb', line 156

def seq
  @seq
end

#typeObject

type: CancelArguments # type: string # type: number # type: string



156
157
158
# File 'lib/dsp/dsp_protocol.rb', line 156

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



163
164
165
166
167
168
169
170
# File 'lib/dsp/dsp_protocol.rb', line 163

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