Class: OvirtSDK4::ApiSummaryItem
- 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 = {}) ⇒ ApiSummaryItem
constructor
Creates a new instance of the ApiSummaryItem class.
-
#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 = {}) ⇒ ApiSummaryItem
Creates a new instance of the OvirtSDK4::ApiSummaryItem class.
1323 1324 1325 1326 1327 |
# File 'lib/ovirtsdk4/types.rb', line 1323 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.
1332 1333 1334 1335 1336 |
# File 'lib/ovirtsdk4/types.rb', line 1332 def ==(other) super && @active == other.active && @total == other.total end |
#active ⇒ Integer
Returns the value of the active
attribute.
1280 1281 1282 |
# File 'lib/ovirtsdk4/types.rb', line 1280 def active @active end |
#active=(value) ⇒ Object
Sets the value of the active
attribute.
1289 1290 1291 |
# File 'lib/ovirtsdk4/types.rb', line 1289 def active=(value) @active = value end |
#hash ⇒ Object
Generates a hash value for this object.
1341 1342 1343 1344 1345 |
# File 'lib/ovirtsdk4/types.rb', line 1341 def hash super + @active.hash + @total.hash end |
#total ⇒ Integer
Returns the value of the total
attribute.
1298 1299 1300 |
# File 'lib/ovirtsdk4/types.rb', line 1298 def total @total end |
#total=(value) ⇒ Object
Sets the value of the total
attribute.
1307 1308 1309 |
# File 'lib/ovirtsdk4/types.rb', line 1307 def total=(value) @total = value end |