Class: DSP::PauseResponse

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

Overview

interface PauseResponse extends Response


Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ PauseResponse

Returns a new instance of PauseResponse.



2212
2213
2214
2215
# File 'lib/dsp/dsp_protocol.rb', line 2212

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



2210
2211
2212
# File 'lib/dsp/dsp_protocol.rb', line 2210

def body
  @body
end

#commandObject

type: number # type: boolean # type: string # type: string # type: any # type: number # type: string



2210
2211
2212
# File 'lib/dsp/dsp_protocol.rb', line 2210

def command
  @command
end

#messageObject

type: number # type: boolean # type: string # type: string # type: any # type: number # type: string



2210
2211
2212
# File 'lib/dsp/dsp_protocol.rb', line 2210

def message
  @message
end

#request_seqObject

type: number # type: boolean # type: string # type: string # type: any # type: number # type: string



2210
2211
2212
# File 'lib/dsp/dsp_protocol.rb', line 2210

def request_seq
  @request_seq
end

#seqObject

type: number # type: boolean # type: string # type: string # type: any # type: number # type: string



2210
2211
2212
# File 'lib/dsp/dsp_protocol.rb', line 2210

def seq
  @seq
end

#successObject

type: number # type: boolean # type: string # type: string # type: any # type: number # type: string



2210
2211
2212
# File 'lib/dsp/dsp_protocol.rb', line 2210

def success
  @success
end

#typeObject

type: number # type: boolean # type: string # type: string # type: any # type: number # type: string



2210
2211
2212
# File 'lib/dsp/dsp_protocol.rb', line 2210

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
# File 'lib/dsp/dsp_protocol.rb', line 2217

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