Class: OvirtSDK4::CpuTopology
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::CpuTopology
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Integer) cores
Returns the value of the
cores
attribute. -
- (Object) cores=(value)
Sets the value of the
cores
attribute. -
- (CpuTopology) initialize(opts = {})
constructor
Creates a new instance of the CpuTopology class.
-
- (Integer) sockets
Returns the value of the
sockets
attribute. -
- (Object) sockets=(value)
Sets the value of the
sockets
attribute. -
- (Integer) threads
Returns the value of the
threads
attribute. -
- (Object) threads=(value)
Sets the value of the
threads
attribute.
Methods included from Type
Constructor Details
- (CpuTopology) initialize(opts = {})
Creates a new instance of the OvirtSDK4::CpuTopology class.
1922 1923 1924 1925 1926 1927 |
# File 'lib/ovirtsdk4/types.rb', line 1922 def initialize(opts = {}) super(opts) self.cores = opts[:cores] self.sockets = opts[:sockets] self.threads = opts[:threads] end |
Instance Method Details
- (Integer) cores
Returns the value of the cores
attribute.
1859 1860 1861 |
# File 'lib/ovirtsdk4/types.rb', line 1859 def cores return @cores end |
- (Object) cores=(value)
Sets the value of the cores
attribute.
1868 1869 1870 |
# File 'lib/ovirtsdk4/types.rb', line 1868 def cores=(value) @cores = value end |
- (Integer) sockets
Returns the value of the sockets
attribute.
1877 1878 1879 |
# File 'lib/ovirtsdk4/types.rb', line 1877 def sockets return @sockets end |
- (Object) sockets=(value)
Sets the value of the sockets
attribute.
1886 1887 1888 |
# File 'lib/ovirtsdk4/types.rb', line 1886 def sockets=(value) @sockets = value end |
- (Integer) threads
Returns the value of the threads
attribute.
1895 1896 1897 |
# File 'lib/ovirtsdk4/types.rb', line 1895 def threads return @threads end |
- (Object) threads=(value)
Sets the value of the threads
attribute.
1904 1905 1906 |
# File 'lib/ovirtsdk4/types.rb', line 1904 def threads=(value) @threads = value end |