Class: DSP::PauseRequest

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

Overview

interface PauseRequest extends Request {

    arguments: PauseArguments;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from DSP::DSPBase

Instance Attribute Details

#argumentsObject

type: PauseArguments # type: string # type: number # type: string



2181
2182
2183
# File 'lib/dsp/dsp_protocol.rb', line 2181

def arguments
  @arguments
end

#commandObject

type: PauseArguments # type: string # type: number # type: string



2181
2182
2183
# File 'lib/dsp/dsp_protocol.rb', line 2181

def command
  @command
end

#seqObject

type: PauseArguments # type: string # type: number # type: string



2181
2182
2183
# File 'lib/dsp/dsp_protocol.rb', line 2181

def seq
  @seq
end

#typeObject

type: PauseArguments # type: string # type: number # type: string



2181
2182
2183
# File 'lib/dsp/dsp_protocol.rb', line 2181

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2183
2184
2185
2186
2187
2188
2189
2190
# File 'lib/dsp/dsp_protocol.rb', line 2183

def from_h!(value)
  value = {} if value.nil?
  self.arguments = PauseArguments.new(value['arguments']) unless value['arguments'].nil?
  self.command = value['command']
  self.seq = value['seq']
  self.type = value['type']
  self
end