Class: DSP::ModulesArguments

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

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

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

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

#moduleCountObject

type: number # type: number



2770
2771
2772
# File 'lib/dsp/dsp_protocol.rb', line 2770

def moduleCount
  @moduleCount
end

#startModuleObject

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