Class: OvirtSDK4::VmSummary
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#active ⇒ Integer
Returns the value of the
activeattribute. -
#active=(value) ⇒ Object
Sets the value of the
activeattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ VmSummary
constructor
Creates a new instance of the VmSummary class.
-
#migrating ⇒ Integer
Returns the value of the
migratingattribute. -
#migrating=(value) ⇒ Object
Sets the value of the
migratingattribute. -
#total ⇒ Integer
Returns the value of the
totalattribute. -
#total=(value) ⇒ Object
Sets the value of the
totalattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmSummary
Creates a new instance of the OvirtSDK4::VmSummary class.
27868 27869 27870 27871 27872 27873 |
# File 'lib/ovirtsdk4/types.rb', line 27868 def initialize(opts = {}) super(opts) self.active = opts[:active] self. = opts[:migrating] self.total = opts[:total] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
27878 27879 27880 27881 27882 27883 |
# File 'lib/ovirtsdk4/types.rb', line 27878 def ==(other) super && @active == other.active && == other. && @total == other.total end |
#active ⇒ Integer
Returns the value of the active attribute.
27805 27806 27807 |
# File 'lib/ovirtsdk4/types.rb', line 27805 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
27814 27815 27816 |
# File 'lib/ovirtsdk4/types.rb', line 27814 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
27888 27889 27890 27891 27892 27893 |
# File 'lib/ovirtsdk4/types.rb', line 27888 def hash super + @active.hash + .hash + @total.hash end |
#migrating ⇒ Integer
Returns the value of the migrating attribute.
27823 27824 27825 |
# File 'lib/ovirtsdk4/types.rb', line 27823 def end |
#migrating=(value) ⇒ Object
Sets the value of the migrating attribute.
27832 27833 27834 |
# File 'lib/ovirtsdk4/types.rb', line 27832 def (value) = value end |
#total ⇒ Integer
Returns the value of the total attribute.
27841 27842 27843 |
# File 'lib/ovirtsdk4/types.rb', line 27841 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total attribute.
27850 27851 27852 |
# File 'lib/ovirtsdk4/types.rb', line 27850 def total=(value) @total = value end |