Class: OvirtSDK4::SystemOptionValue
- 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 = {}) ⇒ SystemOptionValue
constructor
Creates a new instance of the SystemOptionValue class.
-
#value ⇒ String
Returns the value of the
value
attribute. -
#value=(value) ⇒ Object
Sets the value of the
value
attribute. -
#version ⇒ String
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SystemOptionValue
Creates a new instance of the OvirtSDK4::SystemOptionValue class.
23020 23021 23022 23023 23024 |
# File 'lib/ovirtsdk4/types.rb', line 23020 def initialize(opts = {}) super(opts) self.value = opts[:value] self.version = opts[:version] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
23029 23030 23031 23032 23033 |
# File 'lib/ovirtsdk4/types.rb', line 23029 def ==(other) super && @value == other.value && @version == other.version end |
#hash ⇒ Object
Generates a hash value for this object.
23038 23039 23040 23041 23042 |
# File 'lib/ovirtsdk4/types.rb', line 23038 def hash super + @value.hash + @version.hash end |
#value ⇒ String
Returns the value of the value
attribute.
22977 22978 22979 |
# File 'lib/ovirtsdk4/types.rb', line 22977 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
22986 22987 22988 |
# File 'lib/ovirtsdk4/types.rb', line 22986 def value=(value) @value = value end |
#version ⇒ String
Returns the value of the version
attribute.
22995 22996 22997 |
# File 'lib/ovirtsdk4/types.rb', line 22995 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
23004 23005 23006 |
# File 'lib/ovirtsdk4/types.rb', line 23004 def version=(value) @version = value end |