Class: OvirtSDK4::MemoryOverCommit
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ MemoryOverCommit
constructor
Creates a new instance of the MemoryOverCommit class.
-
#percent ⇒ Integer
Returns the value of the
percent
attribute. -
#percent=(value) ⇒ Object
Sets the value of the
percent
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ MemoryOverCommit
Creates a new instance of the OvirtSDK4::MemoryOverCommit class.
8945 8946 8947 8948 |
# File 'lib/ovirtsdk4/types.rb', line 8945 def initialize(opts = {}) super(opts) self.percent = opts[:percent] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
8953 8954 8955 8956 |
# File 'lib/ovirtsdk4/types.rb', line 8953 def ==(other) super && @percent == other.percent end |
#hash ⇒ Object
Generates a hash value for this object.
8961 8962 8963 8964 |
# File 'lib/ovirtsdk4/types.rb', line 8961 def hash super + @percent.hash end |
#percent ⇒ Integer
Returns the value of the percent
attribute.
8922 8923 8924 |
# File 'lib/ovirtsdk4/types.rb', line 8922 def percent @percent end |
#percent=(value) ⇒ Object
Sets the value of the percent
attribute.
8931 8932 8933 |
# File 'lib/ovirtsdk4/types.rb', line 8931 def percent=(value) @percent = value end |