Class: OvirtSDK4::VmSummary
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#active ⇒ Integer
Returns the value of the
active
attribute. -
#active=(value) ⇒ Object
Sets the value of the
active
attribute. -
#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
migrating
attribute. -
#migrating=(value) ⇒ Object
Sets the value of the
migrating
attribute. -
#total ⇒ Integer
Returns the value of the
total
attribute. -
#total=(value) ⇒ Object
Sets the value of the
total
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ VmSummary
Creates a new instance of the OvirtSDK4::VmSummary class.
27598 27599 27600 27601 27602 27603 |
# File 'lib/ovirtsdk4/types.rb', line 27598 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.
27608 27609 27610 27611 27612 27613 |
# File 'lib/ovirtsdk4/types.rb', line 27608 def ==(other) super && @active == other.active && @migrating == other. && @total == other.total end |
#active ⇒ Integer
Returns the value of the active
attribute.
27535 27536 27537 |
# File 'lib/ovirtsdk4/types.rb', line 27535 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
27544 27545 27546 |
# File 'lib/ovirtsdk4/types.rb', line 27544 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
27618 27619 27620 27621 27622 27623 |
# File 'lib/ovirtsdk4/types.rb', line 27618 def hash super + @active.hash + @migrating.hash + @total.hash end |
#migrating ⇒ Integer
Returns the value of the migrating
attribute.
27553 27554 27555 |
# File 'lib/ovirtsdk4/types.rb', line 27553 def @migrating end |
#migrating=(value) ⇒ Object
Sets the value of the migrating
attribute.
27562 27563 27564 |
# File 'lib/ovirtsdk4/types.rb', line 27562 def (value) @migrating = value end |
#total ⇒ Integer
Returns the value of the total
attribute.
27571 27572 27573 |
# File 'lib/ovirtsdk4/types.rb', line 27571 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total
attribute.
27580 27581 27582 |
# File 'lib/ovirtsdk4/types.rb', line 27580 def total=(value) @total = value end |