Class: DSP::CancelResponse

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

Overview

interface CancelResponse extends Response


Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

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

#bodyObject

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

#commandObject

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

#messageObject

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
  @message
end

#request_seqObject

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

#seqObject

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

#successObject

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

#typeObject

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.message = value['message']
  self.body = value['body']
  self.seq = value['seq']
  self.type = value['type']
  self
end