Class: DSP::ModulesArguments
Overview
interface ModulesArguments {
/** The index of the first module to return; if omitted modules start at 0. */
startModule?: number;
/** The number of modules to return. If moduleCount is not specified or 0, all modules are returned. */
moduleCount?: number;
}
Instance Attribute Summary collapse
-
#moduleCount ⇒ Object
type: number # type: number.
-
#startModule ⇒ Object
type: number # type: number.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ ModulesArguments
constructor
A new instance of ModulesArguments.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ ModulesArguments
Returns a new instance of ModulesArguments.
2772 2773 2774 2775 |
# File 'lib/dsp/dsp_protocol.rb', line 2772 def initialize(initial_hash = nil) super @optional_method_names = %i[startModule moduleCount] end |
Instance Attribute Details
#moduleCount ⇒ Object
type: number # type: number
2770 2771 2772 |
# File 'lib/dsp/dsp_protocol.rb', line 2770 def moduleCount @moduleCount end |
#startModule ⇒ Object
type: number # type: number
2770 2771 2772 |
# File 'lib/dsp/dsp_protocol.rb', line 2770 def startModule @startModule end |
Instance Method Details
#from_h!(value) ⇒ Object
2777 2778 2779 2780 2781 2782 |
# File 'lib/dsp/dsp_protocol.rb', line 2777 def from_h!(value) value = {} if value.nil? self.startModule = value['startModule'] self.moduleCount = value['moduleCount'] self end |