Class: OvirtSDK4::MemoryOverCommit
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::MemoryOverCommit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (MemoryOverCommit) initialize(opts = {})
constructor
Creates a new instance of the MemoryOverCommit class.
-
- (Integer) percent
Returns the value of the
percent
attribute. -
- (Object) percent=(value)
Sets the value of the
percent
attribute.
Methods included from Type
Constructor Details
- (MemoryOverCommit) initialize(opts = {})
Creates a new instance of the OvirtSDK4::MemoryOverCommit class.
6382 6383 6384 6385 |
# File 'lib/ovirtsdk4/types.rb', line 6382 def initialize(opts = {}) super(opts) self.percent = opts[:percent] end |
Instance Method Details
- (Integer) percent
Returns the value of the percent
attribute.
6359 6360 6361 |
# File 'lib/ovirtsdk4/types.rb', line 6359 def percent return @percent end |
- (Object) percent=(value)
Sets the value of the percent
attribute.
6368 6369 6370 |
# File 'lib/ovirtsdk4/types.rb', line 6368 def percent=(value) @percent = value end |