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.
26235 26236 26237 26238 26239 26240 |
# File 'lib/ovirtsdk4/types.rb', line 26235 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.
26245 26246 26247 26248 26249 26250 |
# File 'lib/ovirtsdk4/types.rb', line 26245 def ==(other) super && @active == other.active && @migrating == other. && @total == other.total end |
#active ⇒ Integer
Returns the value of the active attribute.
26172 26173 26174 |
# File 'lib/ovirtsdk4/types.rb', line 26172 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
26181 26182 26183 |
# File 'lib/ovirtsdk4/types.rb', line 26181 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
26255 26256 26257 26258 26259 26260 |
# File 'lib/ovirtsdk4/types.rb', line 26255 def hash super + @active.hash + @migrating.hash + @total.hash end |
#migrating ⇒ Integer
Returns the value of the migrating attribute.
26190 26191 26192 |
# File 'lib/ovirtsdk4/types.rb', line 26190 def @migrating end |
#migrating=(value) ⇒ Object
Sets the value of the migrating attribute.
26199 26200 26201 |
# File 'lib/ovirtsdk4/types.rb', line 26199 def (value) @migrating = value end |
#total ⇒ Integer
Returns the value of the total attribute.
26208 26209 26210 |
# File 'lib/ovirtsdk4/types.rb', line 26208 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total attribute.
26217 26218 26219 |
# File 'lib/ovirtsdk4/types.rb', line 26217 def total=(value) @total = value end |