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.
27010 27011 27012 27013 27014 27015 |
# File 'lib/ovirtsdk4/types.rb', line 27010 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.
27020 27021 27022 27023 27024 27025 |
# File 'lib/ovirtsdk4/types.rb', line 27020 def ==(other) super && @active == other.active && @migrating == other. && @total == other.total end |
#active ⇒ Integer
Returns the value of the active
attribute.
26947 26948 26949 |
# File 'lib/ovirtsdk4/types.rb', line 26947 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
26956 26957 26958 |
# File 'lib/ovirtsdk4/types.rb', line 26956 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
27030 27031 27032 27033 27034 27035 |
# File 'lib/ovirtsdk4/types.rb', line 27030 def hash super + @active.hash + @migrating.hash + @total.hash end |
#migrating ⇒ Integer
Returns the value of the migrating
attribute.
26965 26966 26967 |
# File 'lib/ovirtsdk4/types.rb', line 26965 def @migrating end |
#migrating=(value) ⇒ Object
Sets the value of the migrating
attribute.
26974 26975 26976 |
# File 'lib/ovirtsdk4/types.rb', line 26974 def (value) @migrating = value end |
#total ⇒ Integer
Returns the value of the total
attribute.
26983 26984 26985 |
# File 'lib/ovirtsdk4/types.rb', line 26983 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total
attribute.
26992 26993 26994 |
# File 'lib/ovirtsdk4/types.rb', line 26992 def total=(value) @total = value end |