Class: OvirtSDK4::Rate
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::Rate
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Integer) bytes
Returns the value of the
bytes
attribute. -
- (Object) bytes=(value)
Sets the value of the
bytes
attribute. -
- (Rate) initialize(opts = {})
constructor
Creates a new instance of the Rate class.
-
- (Integer) period
Returns the value of the
period
attribute. -
- (Object) period=(value)
Sets the value of the
period
attribute.
Methods included from Type
Constructor Details
- (Rate) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Rate class.
12563 12564 12565 12566 12567 |
# File 'lib/ovirtsdk4/types.rb', line 12563 def initialize(opts = {}) super(opts) self.bytes = opts[:bytes] self.period = opts[:period] end |
Instance Method Details
- (Integer) bytes
Returns the value of the bytes
attribute.
12520 12521 12522 |
# File 'lib/ovirtsdk4/types.rb', line 12520 def bytes return @bytes end |
- (Object) bytes=(value)
Sets the value of the bytes
attribute.
12529 12530 12531 |
# File 'lib/ovirtsdk4/types.rb', line 12529 def bytes=(value) @bytes = value end |
- (Integer) period
Returns the value of the period
attribute.
12538 12539 12540 |
# File 'lib/ovirtsdk4/types.rb', line 12538 def period return @period end |
- (Object) period=(value)
Sets the value of the period
attribute.
12547 12548 12549 |
# File 'lib/ovirtsdk4/types.rb', line 12547 def period=(value) @period = value end |