class OvirtSDK4::VmSummary
Public Class Methods
Creates a new instance of the {VmSummary} 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] :active The value of attribute `active`.
@option opts [Integer] :migrating The value of attribute `migrating`.
@option opts [Integer] :total The value of attribute `total`.
OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 27010 def initialize(opts = {}) super(opts) self.active = opts[:active] self.migrating = opts[:migrating] self.total = opts[:total] end
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 27020 def ==(other) super && @active == other.active && @migrating == other.migrating && @total == other.total end
Returns the value of the `active` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 26947 def active @active end
Sets the value of the `active` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 26956 def active=(value) @active = value end
Generates a hash value for this object.
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 27030 def hash super + @active.hash + @migrating.hash + @total.hash end
Returns the value of the `migrating` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 26965 def migrating @migrating end
Sets the value of the `migrating` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 26974 def migrating=(value) @migrating = value end
Returns the value of the `total` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 26983 def total @total end
Sets the value of the `total` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 26992 def total=(value) @total = value end