Class: DSP::LoadedSourcesResponse

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

Overview

interface LoadedSourcesResponse extends Response {

    body: {
        /** Set of loaded sources. */
        sources: Source[];
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ LoadedSourcesResponse

Returns a new instance of LoadedSourcesResponse.



2864
2865
2866
2867
# File 'lib/dsp/dsp_protocol.rb', line 2864

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

Instance Attribute Details

#bodyObject

type: {



2858
2859
2860
# File 'lib/dsp/dsp_protocol.rb', line 2858

def body
  @body
end

#commandObject

type: {



2858
2859
2860
# File 'lib/dsp/dsp_protocol.rb', line 2858

def command
  @command
end

#messageObject

type: {



2858
2859
2860
# File 'lib/dsp/dsp_protocol.rb', line 2858

def message
  @message
end

#request_seqObject

/** Set of loaded sources. */

    sources: Source[];
}


2862
2863
2864
# File 'lib/dsp/dsp_protocol.rb', line 2862

def request_seq
  @request_seq
end

#seqObject

type: {



2858
2859
2860
# File 'lib/dsp/dsp_protocol.rb', line 2858

def seq
  @seq
end

#successObject

type: {



2858
2859
2860
# File 'lib/dsp/dsp_protocol.rb', line 2858

def success
  @success
end

#typeObject

type: {



2858
2859
2860
# File 'lib/dsp/dsp_protocol.rb', line 2858

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
# File 'lib/dsp/dsp_protocol.rb', line 2869

def from_h!(value)
  value = {} if value.nil?
  self.body = value['body'] # Unknown type
  self.request_seq = value['request_seq']
  self.success = value['success'] # Unknown type
  self.command = value['command']
  self.message = value['message']
  self.seq = value['seq']
  self.type = value['type']
  self
end