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.
22112 22113 22114 22115 22116 |
# File 'lib/ovirtsdk4/types.rb', line 22112 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.
22121 22122 22123 22124 22125 |
# File 'lib/ovirtsdk4/types.rb', line 22121 def ==(other) super && @value == other.value && @version == other.version end |
#hash ⇒ Object
Generates a hash value for this object.
22130 22131 22132 22133 22134 |
# File 'lib/ovirtsdk4/types.rb', line 22130 def hash super + @value.hash + @version.hash end |
#value ⇒ String
Returns the value of the value
attribute.
22069 22070 22071 |
# File 'lib/ovirtsdk4/types.rb', line 22069 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
22078 22079 22080 |
# File 'lib/ovirtsdk4/types.rb', line 22078 def value=(value) @value = value end |
#version ⇒ String
Returns the value of the version
attribute.
22087 22088 22089 |
# File 'lib/ovirtsdk4/types.rb', line 22087 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
22096 22097 22098 |
# File 'lib/ovirtsdk4/types.rb', line 22096 def version=(value) @version = value end |