Class: DSP::TerminateResponse
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface TerminateResponse 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) ⇒ TerminateResponse
constructor
A new instance of TerminateResponse.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ TerminateResponse
Returns a new instance of TerminateResponse.
1280 1281 1282 1283 |
# File 'lib/dsp/dsp_protocol.rb', line 1280 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
1278 1279 1280 |
# File 'lib/dsp/dsp_protocol.rb', line 1278 def body @body end |
#command ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
1278 1279 1280 |
# File 'lib/dsp/dsp_protocol.rb', line 1278 def command @command end |
#message ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
1278 1279 1280 |
# File 'lib/dsp/dsp_protocol.rb', line 1278 def @message end |
#request_seq ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
1278 1279 1280 |
# File 'lib/dsp/dsp_protocol.rb', line 1278 def request_seq @request_seq end |
#seq ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
1278 1279 1280 |
# File 'lib/dsp/dsp_protocol.rb', line 1278 def seq @seq end |
#success ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
1278 1279 1280 |
# File 'lib/dsp/dsp_protocol.rb', line 1278 def success @success end |
#type ⇒ Object
type: number # type: boolean # type: string # type: string # type: any # type: number # type: string
1278 1279 1280 |
# File 'lib/dsp/dsp_protocol.rb', line 1278 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 |
# File 'lib/dsp/dsp_protocol.rb', line 1285 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 |