Class: RtmCpuStruct

Inherits:
Object
  • Object
show all
Defined in:
lib/ovhrb/manager/manager.rb

Overview

Constant Summary collapse

@@schema_type =
"rtmCpuStruct"
@@schema_ns =
"http://soapi.ovh.com/manager"
@@schema_element =
[["frequency", ["SOAP::SOAPString", XSD::QName.new(nil, "frequency")]], ["core", ["SOAP::SOAPInt", XSD::QName.new(nil, "core")]], ["name", ["SOAP::SOAPString", XSD::QName.new(nil, "name")]], ["cache", ["SOAP::SOAPString", XSD::QName.new(nil, "cache")]], ["percentLoad", ["SOAP::SOAPInt", XSD::QName.new(nil, "percentLoad")]], ["loadAvg", ["RtmCpuLoadAvgStruct", XSD::QName.new(nil, "loadAvg")]]]

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(frequency = nil, core = nil, name = nil, cache = nil, percentLoad = nil, loadAvg = nil) ⇒ RtmCpuStruct

Returns a new instance of RtmCpuStruct.



2714
2715
2716
2717
2718
2719
2720
2721
# File 'lib/ovhrb/manager/manager.rb', line 2714

def initialize(frequency = nil, core = nil, name = nil, cache = nil, percentLoad = nil, loadAvg = nil)
  @frequency = frequency
  @core = core
  @name = name
  @cache = cache
  @percentLoad = percentLoad
  @loadAvg = loadAvg
end

Instance Attribute Details

#cacheObject

Returns the value of attribute cache.



2710
2711
2712
# File 'lib/ovhrb/manager/manager.rb', line 2710

def cache
  @cache
end

#coreObject

Returns the value of attribute core.



2708
2709
2710
# File 'lib/ovhrb/manager/manager.rb', line 2708

def core
  @core
end

#frequencyObject

Returns the value of attribute frequency.



2707
2708
2709
# File 'lib/ovhrb/manager/manager.rb', line 2707

def frequency
  @frequency
end

#loadAvgObject

Returns the value of attribute loadAvg.



2712
2713
2714
# File 'lib/ovhrb/manager/manager.rb', line 2712

def loadAvg
  @loadAvg
end

#nameObject

Returns the value of attribute name.



2709
2710
2711
# File 'lib/ovhrb/manager/manager.rb', line 2709

def name
  @name
end

#percentLoadObject

Returns the value of attribute percentLoad.



2711
2712
2713
# File 'lib/ovhrb/manager/manager.rb', line 2711

def percentLoad
  @percentLoad
end