Class: DSP::ModulesRequest

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

Overview

interface ModulesRequest extends Request {

    arguments: ModulesArguments;
}

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



2751
2752
2753
# File 'lib/dsp/dsp_protocol.rb', line 2751

def arguments
  @arguments
end

#commandObject

type: ModulesArguments # type: string # type: number # type: string



2751
2752
2753
# File 'lib/dsp/dsp_protocol.rb', line 2751

def command
  @command
end

#seqObject

type: ModulesArguments # type: string # type: number # type: string



2751
2752
2753
# File 'lib/dsp/dsp_protocol.rb', line 2751

def seq
  @seq
end

#typeObject

type: ModulesArguments # type: string # type: number # type: string



2751
2752
2753
# File 'lib/dsp/dsp_protocol.rb', line 2751

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2753
2754
2755
2756
2757
2758
2759
2760
# File 'lib/dsp/dsp_protocol.rb', line 2753

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