Creates a new instance of the {Rate} 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] :bytes The value of attribute `bytes`.
@option opts [Integer] :period The value of attribute `period`.
# File lib/ovirtsdk4/types.rb, line 15486 def initialize(opts = {}) super(opts) self.bytes = opts[:bytes] self.period = opts[:period] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 15495 def ==(other) super && @bytes == other.bytes && @period == other.period end
Returns the value of the `bytes` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15443 def bytes @bytes end
Sets the value of the `bytes` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15452 def bytes=(value) @bytes = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 15504 def hash super + @bytes.hash + @period.hash end
Returns the value of the `period` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 15461 def period @period end
Sets the value of the `period` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 15470 def period=(value) @period = value end