Class: DSP::CancelResponse
Overview
interface CancelResponse extends Response
Instance Attribute Summary collapse
-
#body ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string.
-
#command ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string.
-
#message ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string.
-
#request_seq ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string.
-
#seq ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string.
-
#success ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string.
-
#type ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ CancelResponse
constructor
A new instance of CancelResponse.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ CancelResponse
Returns a new instance of CancelResponse.
204 205 206 207 |
# File 'lib/dsp/dsp_protocol.rb', line 204 def initialize(initial_hash = nil) super @optional_method_names = %i[message body] end |
Instance Attribute Details
#body ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
202 203 204 |
# File 'lib/dsp/dsp_protocol.rb', line 202 def body @body end |
#command ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
202 203 204 |
# File 'lib/dsp/dsp_protocol.rb', line 202 def command @command end |
#message ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
202 203 204 |
# File 'lib/dsp/dsp_protocol.rb', line 202 def @message end |
#request_seq ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
202 203 204 |
# File 'lib/dsp/dsp_protocol.rb', line 202 def request_seq @request_seq end |
#seq ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
202 203 204 |
# File 'lib/dsp/dsp_protocol.rb', line 202 def seq @seq end |
#success ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
202 203 204 |
# File 'lib/dsp/dsp_protocol.rb', line 202 def success @success end |
#type ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
202 203 204 |
# File 'lib/dsp/dsp_protocol.rb', line 202 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
209 210 211 212 213 214 215 216 217 218 219 |
# File 'lib/dsp/dsp_protocol.rb', line 209 def from_h!(value) value = {} if value.nil? self.request_seq = value['request_seq'] self.success = value['success'] # Unknown type self.command = value['command'] self. = value['message'] self.body = value['body'] self.seq = value['seq'] self.type = value['type'] self end |