Class: DSP::CancelArguments
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
-
#progressId ⇒ Object
type: number # type: string.
-
#requestId ⇒ Object
type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CancelArguments
constructor
A new instance of CancelArguments.
Methods inherited from DSPBase
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
#progressId ⇒ Object
type: number # type: string
184 185 186 |
# File 'lib/dsp/dsp_protocol.rb', line 184 def progressId @progressId end |
#requestId ⇒ Object
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 |