Class: OvirtSDK4::CpuTopology

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (CpuTopology) initialize(opts = {})

Creates a new instance of the OvirtSDK4::CpuTopology class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :cores (Integer)

    The value of attribute cores.

  • :sockets (Integer)

    The value of attribute sockets.

  • :threads (Integer)

    The value of attribute threads.



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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


1904
1905
1906
# File 'lib/ovirtsdk4/types.rb', line 1904

def threads=(value)
  @threads = value
end