Class: DSP::CancelArguments

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

Overview

interface CancelArguments {

    /** The ID (attribute 'seq') of the request to cancel. If missing no request is cancelled.
        Both a 'requestId' and a 'progressId' can be specified in one request.
    */
    requestId?: number;
    /** The ID (attribute 'progressId') of the progress to cancel. If missing no progress is cancelled.
        Both a 'requestId' and a 'progressId' can be specified in one request.
    */
    progressId?: string;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ CancelArguments

Returns a new instance of CancelArguments.



186
187
188
189
# File 'lib/dsp/dsp_protocol.rb', line 186

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

Instance Attribute Details

#progressIdObject

type: number # type: string



184
185
186
# File 'lib/dsp/dsp_protocol.rb', line 184

def progressId
  @progressId
end

#requestIdObject

type: number # type: string



184
185
186
# File 'lib/dsp/dsp_protocol.rb', line 184

def requestId
  @requestId
end

Instance Method Details

#from_h!(value) ⇒ Object



191
192
193
194
195
196
# File 'lib/dsp/dsp_protocol.rb', line 191

def from_h!(value)
  value = {} if value.nil?
  self.requestId = value['requestId']
  self.progressId = value['progressId']
  self
end