Class: DSP::CancelRequest
Overview
interface CancelRequest extends Request {
arguments?: CancelArguments;
}
Instance Attribute Summary collapse
-
#arguments ⇒ Object
type: CancelArguments # type: string # type: number # type: string.
-
#command ⇒ Object
type: CancelArguments # type: string # type: number # type: string.
-
#seq ⇒ Object
type: CancelArguments # type: string # type: number # type: string.
-
#type ⇒ Object
type: CancelArguments # type: string # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CancelRequest
constructor
A new instance of CancelRequest.
Methods inherited from DSPBase
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
#arguments ⇒ Object
type: CancelArguments # type: string # type: number # type: string
156 157 158 |
# File 'lib/dsp/dsp_protocol.rb', line 156 def arguments @arguments end |
#command ⇒ Object
type: CancelArguments # type: string # type: number # type: string
156 157 158 |
# File 'lib/dsp/dsp_protocol.rb', line 156 def command @command end |
#seq ⇒ Object
type: CancelArguments # type: string # type: number # type: string
156 157 158 |
# File 'lib/dsp/dsp_protocol.rb', line 156 def seq @seq end |
#type ⇒ Object
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 |