class OvirtSDK4::ApiSummaryItem
Public Class Methods
new(opts = {})
click to toggle source
Creates a new instance of the {ApiSummaryItem} class.
@param opts [Hash] A hash containing the attributes of the object. The keys of the hash
should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.
@option opts [Integer] :active The value of attribute `active`.
@option opts [Integer] :total The value of attribute `total`.
Calls superclass method
OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 1332 def initialize(opts = {}) super(opts) self.active = opts[:active] self.total = opts[:total] end
Public Instance Methods
==(other)
click to toggle source
Returns `true` if `self` and `other` have the same attributes and values.
Calls superclass method
OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 1341 def ==(other) super && @active == other.active && @total == other.total end
active()
click to toggle source
Returns the value of the `active` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 1289 def active @active end
active=(value)
click to toggle source
Sets the value of the `active` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 1298 def active=(value) @active = value end
hash()
click to toggle source
Generates a hash value for this object.
Calls superclass method
OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 1350 def hash super + @active.hash + @total.hash end
total()
click to toggle source
Returns the value of the `total` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 1307 def total @total end
total=(value)
click to toggle source
Sets the value of the `total` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 1316 def total=(value) @total = value end