Class: OvirtSDK4::ApiSummaryItem
- 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 = {}) ⇒ ApiSummaryItem
constructor
Creates a new instance of the ApiSummaryItem class.
-
#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 = {}) ⇒ ApiSummaryItem
Creates a new instance of the OvirtSDK4::ApiSummaryItem class.
1383 1384 1385 1386 1387 |
# File 'lib/ovirtsdk4/types.rb', line 1383 def initialize(opts = {}) super(opts) self.active = opts[:active] self.total = opts[:total] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
1392 1393 1394 1395 1396 |
# File 'lib/ovirtsdk4/types.rb', line 1392 def ==(other) super && @active == other.active && @total == other.total end |
#active ⇒ Integer
Returns the value of the active attribute.
1340 1341 1342 |
# File 'lib/ovirtsdk4/types.rb', line 1340 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active attribute.
1349 1350 1351 |
# File 'lib/ovirtsdk4/types.rb', line 1349 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
1401 1402 1403 1404 1405 |
# File 'lib/ovirtsdk4/types.rb', line 1401 def hash super + @active.hash + @total.hash end |
#total ⇒ Integer
Returns the value of the total attribute.
1358 1359 1360 |
# File 'lib/ovirtsdk4/types.rb', line 1358 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total attribute.
1367 1368 1369 |
# File 'lib/ovirtsdk4/types.rb', line 1367 def total=(value) @total = value end |