Class: OvirtSDK4::VcpuPin
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#cpu_set ⇒ String
Returns the value of the
cpu_setattribute. -
#cpu_set=(value) ⇒ Object
Sets the value of the
cpu_setattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ VcpuPin
constructor
Creates a new instance of the VcpuPin class.
-
#vcpu ⇒ Integer
Returns the value of the
vcpuattribute. -
#vcpu=(value) ⇒ Object
Sets the value of the
vcpuattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VcpuPin
Creates a new instance of the OvirtSDK4::VcpuPin class.
23567 23568 23569 23570 23571 |
# File 'lib/ovirtsdk4/types.rb', line 23567 def initialize(opts = {}) super(opts) self.cpu_set = opts[:cpu_set] self.vcpu = opts[:vcpu] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
23576 23577 23578 23579 23580 |
# File 'lib/ovirtsdk4/types.rb', line 23576 def ==(other) super && @cpu_set == other.cpu_set && @vcpu == other.vcpu end |
#cpu_set ⇒ String
Returns the value of the cpu_set attribute.
23524 23525 23526 |
# File 'lib/ovirtsdk4/types.rb', line 23524 def cpu_set @cpu_set end |
#cpu_set=(value) ⇒ Object
Sets the value of the cpu_set attribute.
23533 23534 23535 |
# File 'lib/ovirtsdk4/types.rb', line 23533 def cpu_set=(value) @cpu_set = value end |
#hash ⇒ Object
Generates a hash value for this object.
23585 23586 23587 23588 23589 |
# File 'lib/ovirtsdk4/types.rb', line 23585 def hash super + @cpu_set.hash + @vcpu.hash end |
#vcpu ⇒ Integer
Returns the value of the vcpu attribute.
23542 23543 23544 |
# File 'lib/ovirtsdk4/types.rb', line 23542 def vcpu @vcpu end |
#vcpu=(value) ⇒ Object
Sets the value of the vcpu attribute.
23551 23552 23553 |
# File 'lib/ovirtsdk4/types.rb', line 23551 def vcpu=(value) @vcpu = value end |