Class: DSP::LoadedSourcesRequest

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

Overview

interface LoadedSourcesRequest extends Request {

    arguments?: LoadedSourcesArguments;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ LoadedSourcesRequest

Returns a new instance of LoadedSourcesRequest.



2826
2827
2828
2829
# File 'lib/dsp/dsp_protocol.rb', line 2826

def initialize(initial_hash = nil)
  super
  @optional_method_names = i[arguments]
end

Instance Attribute Details

#argumentsObject

type: LoadedSourcesArguments # type: string # type: number # type: string



2824
2825
2826
# File 'lib/dsp/dsp_protocol.rb', line 2824

def arguments
  @arguments
end

#commandObject

type: LoadedSourcesArguments # type: string # type: number # type: string



2824
2825
2826
# File 'lib/dsp/dsp_protocol.rb', line 2824

def command
  @command
end

#seqObject

type: LoadedSourcesArguments # type: string # type: number # type: string



2824
2825
2826
# File 'lib/dsp/dsp_protocol.rb', line 2824

def seq
  @seq
end

#typeObject

type: LoadedSourcesArguments # type: string # type: number # type: string



2824
2825
2826
# File 'lib/dsp/dsp_protocol.rb', line 2824

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2831
2832
2833
2834
2835
2836
2837
2838
# File 'lib/dsp/dsp_protocol.rb', line 2831

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