Class: DSP::VariablesRequest

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

Overview

interface VariablesRequest extends Request {

    arguments: VariablesArguments;
}

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



2380
2381
2382
# File 'lib/dsp/dsp_protocol.rb', line 2380

def arguments
  @arguments
end

#commandObject

type: VariablesArguments # type: string # type: number # type: string



2380
2381
2382
# File 'lib/dsp/dsp_protocol.rb', line 2380

def command
  @command
end

#seqObject

type: VariablesArguments # type: string # type: number # type: string



2380
2381
2382
# File 'lib/dsp/dsp_protocol.rb', line 2380

def seq
  @seq
end

#typeObject

type: VariablesArguments # type: string # type: number # type: string



2380
2381
2382
# File 'lib/dsp/dsp_protocol.rb', line 2380

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2382
2383
2384
2385
2386
2387
2388
2389
# File 'lib/dsp/dsp_protocol.rb', line 2382

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