Class: DSP::LoadedSourcesResponse
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface LoadedSourcesResponse extends Response {
body: {
/** Set of loaded sources. */
sources: Source[];
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#command ⇒ Object
type: {.
-
#message ⇒ Object
type: {.
-
#request_seq ⇒ Object
/** Set of loaded sources.
-
#seq ⇒ Object
type: {.
-
#success ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ LoadedSourcesResponse
constructor
A new instance of LoadedSourcesResponse.
Methods inherited from DSPBase
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
#body ⇒ Object
type: {
2858 2859 2860 |
# File 'lib/dsp/dsp_protocol.rb', line 2858 def body @body end |
#command ⇒ Object
type: {
2858 2859 2860 |
# File 'lib/dsp/dsp_protocol.rb', line 2858 def command @command end |
#message ⇒ Object
type: {
2858 2859 2860 |
# File 'lib/dsp/dsp_protocol.rb', line 2858 def @message end |
#request_seq ⇒ Object
/** Set of loaded sources. */
sources: Source[];
}
2862 2863 2864 |
# File 'lib/dsp/dsp_protocol.rb', line 2862 def request_seq @request_seq end |
#seq ⇒ Object
type: {
2858 2859 2860 |
# File 'lib/dsp/dsp_protocol.rb', line 2858 def seq @seq end |
#success ⇒ Object
type: {
2858 2859 2860 |
# File 'lib/dsp/dsp_protocol.rb', line 2858 def success @success end |
#type ⇒ Object
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. = value['message'] self.seq = value['seq'] self.type = value['type'] self end |