Class: OvirtSDK4::CpuTopology
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#cores ⇒ Integer
Returns the value of the
coresattribute. -
#cores=(value) ⇒ Object
Sets the value of the
coresattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ CpuTopology
constructor
Creates a new instance of the CpuTopology class.
-
#sockets ⇒ Integer
Returns the value of the
socketsattribute. -
#sockets=(value) ⇒ Object
Sets the value of the
socketsattribute. -
#threads ⇒ Integer
Returns the value of the
threadsattribute. -
#threads=(value) ⇒ Object
Sets the value of the
threadsattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ CpuTopology
Creates a new instance of the OvirtSDK4::CpuTopology class.
2574 2575 2576 2577 2578 2579 |
# File 'lib/ovirtsdk4/types.rb', line 2574 def initialize(opts = {}) super(opts) self.cores = opts[:cores] self.sockets = opts[:sockets] self.threads = opts[:threads] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
2584 2585 2586 2587 2588 2589 |
# File 'lib/ovirtsdk4/types.rb', line 2584 def ==(other) super && @cores == other.cores && @sockets == other.sockets && @threads == other.threads end |
#cores ⇒ Integer
Returns the value of the cores attribute.
2511 2512 2513 |
# File 'lib/ovirtsdk4/types.rb', line 2511 def cores @cores end |
#cores=(value) ⇒ Object
Sets the value of the cores attribute.
2520 2521 2522 |
# File 'lib/ovirtsdk4/types.rb', line 2520 def cores=(value) @cores = value end |
#hash ⇒ Object
Generates a hash value for this object.
2594 2595 2596 2597 2598 2599 |
# File 'lib/ovirtsdk4/types.rb', line 2594 def hash super + @cores.hash + @sockets.hash + @threads.hash end |
#sockets ⇒ Integer
Returns the value of the sockets attribute.
2529 2530 2531 |
# File 'lib/ovirtsdk4/types.rb', line 2529 def sockets @sockets end |
#sockets=(value) ⇒ Object
Sets the value of the sockets attribute.
2538 2539 2540 |
# File 'lib/ovirtsdk4/types.rb', line 2538 def sockets=(value) @sockets = value end |
#threads ⇒ Integer
Returns the value of the threads attribute.
2547 2548 2549 |
# File 'lib/ovirtsdk4/types.rb', line 2547 def threads @threads end |
#threads=(value) ⇒ Object
Sets the value of the threads attribute.
2556 2557 2558 |
# File 'lib/ovirtsdk4/types.rb', line 2556 def threads=(value) @threads = value end |