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 21903 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 21912 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 21860 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 21869 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 21921 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 21878 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 21887 def vcpu=(value) @vcpu = value end