Class: DSP::InitializeRequest

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

Overview

interface InitializeRequest extends Request {

    arguments: InitializeRequestArguments;
}

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



842
843
844
# File 'lib/dsp/dsp_protocol.rb', line 842

def arguments
  @arguments
end

#commandObject

type: InitializeRequestArguments # type: string # type: number # type: string



842
843
844
# File 'lib/dsp/dsp_protocol.rb', line 842

def command
  @command
end

#seqObject

type: InitializeRequestArguments # type: string # type: number # type: string



842
843
844
# File 'lib/dsp/dsp_protocol.rb', line 842

def seq
  @seq
end

#typeObject

type: InitializeRequestArguments # type: string # type: number # type: string



842
843
844
# File 'lib/dsp/dsp_protocol.rb', line 842

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



844
845
846
847
848
849
850
851
# File 'lib/dsp/dsp_protocol.rb', line 844

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