Class: DSP::ModulesResponse
Overview
interface ModulesResponse extends Response {
body: {
/** All modules or range of modules. */
modules: Module[];
/** The total number of modules available. */
totalModules?: number;
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#command ⇒ Object
type: {.
-
#message ⇒ Object
type: {.
-
#request_seq ⇒ Object
/** All modules or range of modules.
-
#seq ⇒ Object
type: {.
-
#success ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ ModulesResponse
constructor
A new instance of ModulesResponse.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ ModulesResponse
Returns a new instance of ModulesResponse.
2802 2803 2804 2805 |
# File 'lib/dsp/dsp_protocol.rb', line 2802 def initialize(initial_hash = nil) super @optional_method_names = %i[message] end |
Instance Attribute Details
#body ⇒ Object
type: {
2794 2795 2796 |
# File 'lib/dsp/dsp_protocol.rb', line 2794 def body @body end |
#command ⇒ Object
type: {
2794 2795 2796 |
# File 'lib/dsp/dsp_protocol.rb', line 2794 def command @command end |
#message ⇒ Object
type: {
2794 2795 2796 |
# File 'lib/dsp/dsp_protocol.rb', line 2794 def @message end |
#request_seq ⇒ Object
/** All modules or range of modules. */
modules: Module[];
/** The total number of modules available. */
totalModules?: number;
}
2800 2801 2802 |
# File 'lib/dsp/dsp_protocol.rb', line 2800 def request_seq @request_seq end |
#seq ⇒ Object
type: {
2794 2795 2796 |
# File 'lib/dsp/dsp_protocol.rb', line 2794 def seq @seq end |
#success ⇒ Object
type: {
2794 2795 2796 |
# File 'lib/dsp/dsp_protocol.rb', line 2794 def success @success end |
#type ⇒ Object
type: {
2794 2795 2796 |
# File 'lib/dsp/dsp_protocol.rb', line 2794 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 |
# File 'lib/dsp/dsp_protocol.rb', line 2807 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 |