class OvirtSDK4::Rate
Public Class Methods
new(opts = {})
click to toggle source
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`.
Calls superclass method
OvirtSDK4::Struct.new
# File lib/ovirtsdk4/types.rb, line 12268 def initialize(opts = {}) super(opts) self.bytes = opts[:bytes] self.period = opts[:period] end
Public Instance Methods
bytes()
click to toggle source
Returns the value of the `bytes` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 12225 def bytes return @bytes end
bytes=(value)
click to toggle source
Sets the value of the `bytes` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12234 def bytes=(value) @bytes = value end
period()
click to toggle source
Returns the value of the `period` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 12243 def period return @period end
period=(value)
click to toggle source
Sets the value of the `period` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12252 def period=(value) @period = value end