class OvirtSDK4::VcpuPin
Public Class Methods
new(opts = {})
click to toggle source
Creates a new instance of the {VcpuPin} class.
@param opts [Hash] 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.
@option opts [String] :cpu_set The value of attribute `cpu_set`.
@option opts [Integer] :vcpu The value of attribute `vcpu`.
Calls superclass method
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 24746 def initialize(opts = {}) super(opts) self.cpu_set = opts[:cpu_set] self.vcpu = opts[:vcpu] end
Public Instance Methods
==(other)
click to toggle source
Returns `true` if `self` and `other` have the same attributes and values.
Calls superclass method
OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 24755 def ==(other) super && @cpu_set == other.cpu_set && @vcpu == other.vcpu end
cpu_set()
click to toggle source
Returns the value of the `cpu_set` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 24703 def cpu_set @cpu_set end
cpu_set=(value)
click to toggle source
Sets the value of the `cpu_set` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 24712 def cpu_set=(value) @cpu_set = value end
hash()
click to toggle source
Generates a hash value for this object.
Calls superclass method
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 24764 def hash super + @cpu_set.hash + @vcpu.hash end
vcpu()
click to toggle source
Returns the value of the `vcpu` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 24721 def vcpu @vcpu end
vcpu=(value)
click to toggle source
Sets the value of the `vcpu` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 24730 def vcpu=(value) @vcpu = value end