Creates a new instance of the {MemoryOverCommit} 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 [Integer] :percent The value of attribute `percent`.
# File lib/ovirtsdk4/types.rb, line 8432 def initialize(opts = {}) super(opts) self.percent = opts[:percent] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 8440 def ==(other) super && @percent == other.percent end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 8448 def hash super + @percent.hash end
Returns the value of the `percent` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 8409 def percent @percent end
Sets the value of the `percent` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 8418 def percent=(value) @percent = value end