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.
26281 26282 26283 26284 26285 26286 |
# File 'lib/ovirtsdk4/types.rb', line 26281 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.
26291 26292 26293 26294 26295 26296 |
# File 'lib/ovirtsdk4/types.rb', line 26291 def ==(other) super && @active == other.active && @migrating == other. && @total == other.total end |
#active ⇒ Integer
Returns the value of the active
attribute.
26218 26219 26220 |
# File 'lib/ovirtsdk4/types.rb', line 26218 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
26227 26228 26229 |
# File 'lib/ovirtsdk4/types.rb', line 26227 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
26301 26302 26303 26304 26305 26306 |
# File 'lib/ovirtsdk4/types.rb', line 26301 def hash super + @active.hash + @migrating.hash + @total.hash end |
#migrating ⇒ Integer
Returns the value of the migrating
attribute.
26236 26237 26238 |
# File 'lib/ovirtsdk4/types.rb', line 26236 def @migrating end |
#migrating=(value) ⇒ Object
Sets the value of the migrating
attribute.
26245 26246 26247 |
# File 'lib/ovirtsdk4/types.rb', line 26245 def (value) @migrating = value end |
#total ⇒ Integer
Returns the value of the total
attribute.
26254 26255 26256 |
# File 'lib/ovirtsdk4/types.rb', line 26254 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total
attribute.
26263 26264 26265 |
# File 'lib/ovirtsdk4/types.rb', line 26263 def total=(value) @total = value end |