Class: OvirtSDK4::VcpuPin
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#cpu_set ⇒ String
Returns the value of the
cpu_set
attribute. -
#cpu_set=(value) ⇒ Object
Sets the value of the
cpu_set
attribute. -
#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
vcpu
attribute. -
#vcpu=(value) ⇒ Object
Sets the value of the
vcpu
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VcpuPin
Creates a new instance of the OvirtSDK4::VcpuPin class.
23443 23444 23445 23446 23447 |
# File 'lib/ovirtsdk4/types.rb', line 23443 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.
23452 23453 23454 23455 23456 |
# File 'lib/ovirtsdk4/types.rb', line 23452 def ==(other) super && @cpu_set == other.cpu_set && @vcpu == other.vcpu end |
#cpu_set ⇒ String
Returns the value of the cpu_set
attribute.
23400 23401 23402 |
# File 'lib/ovirtsdk4/types.rb', line 23400 def cpu_set @cpu_set end |
#cpu_set=(value) ⇒ Object
Sets the value of the cpu_set
attribute.
23409 23410 23411 |
# File 'lib/ovirtsdk4/types.rb', line 23409 def cpu_set=(value) @cpu_set = value end |
#hash ⇒ Object
Generates a hash value for this object.
23461 23462 23463 23464 23465 |
# File 'lib/ovirtsdk4/types.rb', line 23461 def hash super + @cpu_set.hash + @vcpu.hash end |
#vcpu ⇒ Integer
Returns the value of the vcpu
attribute.
23418 23419 23420 |
# File 'lib/ovirtsdk4/types.rb', line 23418 def vcpu @vcpu end |
#vcpu=(value) ⇒ Object
Sets the value of the vcpu
attribute.
23427 23428 23429 |
# File 'lib/ovirtsdk4/types.rb', line 23427 def vcpu=(value) @vcpu = value end |