Class: DSP::SourceRequest

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

Overview

interface SourceRequest extends Request {

    arguments: SourceArguments;
}

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: SourceArguments # type: string # type: number # type: string



2567
2568
2569
# File 'lib/dsp/dsp_protocol.rb', line 2567

def arguments
  @arguments
end

#commandObject

type: SourceArguments # type: string # type: number # type: string



2567
2568
2569
# File 'lib/dsp/dsp_protocol.rb', line 2567

def command
  @command
end

#seqObject

type: SourceArguments # type: string # type: number # type: string



2567
2568
2569
# File 'lib/dsp/dsp_protocol.rb', line 2567

def seq
  @seq
end

#typeObject

type: SourceArguments # type: string # type: number # type: string



2567
2568
2569
# File 'lib/dsp/dsp_protocol.rb', line 2567

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2569
2570
2571
2572
2573
2574
2575
2576
# File 'lib/dsp/dsp_protocol.rb', line 2569

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