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.
26081 26082 26083 26084 26085 26086 |
# File 'lib/ovirtsdk4/types.rb', line 26081 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.
26091 26092 26093 26094 26095 26096 |
# File 'lib/ovirtsdk4/types.rb', line 26091 def ==(other) super && @active == other.active && @migrating == other. && @total == other.total end |
#active ⇒ Integer
Returns the value of the active
attribute.
26018 26019 26020 |
# File 'lib/ovirtsdk4/types.rb', line 26018 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
26027 26028 26029 |
# File 'lib/ovirtsdk4/types.rb', line 26027 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
26101 26102 26103 26104 26105 26106 |
# File 'lib/ovirtsdk4/types.rb', line 26101 def hash super + @active.hash + @migrating.hash + @total.hash end |
#migrating ⇒ Integer
Returns the value of the migrating
attribute.
26036 26037 26038 |
# File 'lib/ovirtsdk4/types.rb', line 26036 def @migrating end |
#migrating=(value) ⇒ Object
Sets the value of the migrating
attribute.
26045 26046 26047 |
# File 'lib/ovirtsdk4/types.rb', line 26045 def (value) @migrating = value end |
#total ⇒ Integer
Returns the value of the total
attribute.
26054 26055 26056 |
# File 'lib/ovirtsdk4/types.rb', line 26054 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total
attribute.
26063 26064 26065 |
# File 'lib/ovirtsdk4/types.rb', line 26063 def total=(value) @total = value end |