Class: OvirtSDK4::SystemOptionValue
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave 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
valueattribute. -
#value=(value) ⇒ Object
Sets the value of the
valueattribute. -
#version ⇒ String
Returns the value of the
versionattribute. -
#version=(value) ⇒ Object
Sets the value of the
versionattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SystemOptionValue
Creates a new instance of the OvirtSDK4::SystemOptionValue class.
23290 23291 23292 23293 23294 |
# File 'lib/ovirtsdk4/types.rb', line 23290 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.
23299 23300 23301 23302 23303 |
# File 'lib/ovirtsdk4/types.rb', line 23299 def ==(other) super && @value == other.value && @version == other.version end |
#hash ⇒ Object
Generates a hash value for this object.
23308 23309 23310 23311 23312 |
# File 'lib/ovirtsdk4/types.rb', line 23308 def hash super + @value.hash + @version.hash end |
#value ⇒ String
Returns the value of the value attribute.
23247 23248 23249 |
# File 'lib/ovirtsdk4/types.rb', line 23247 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value attribute.
23256 23257 23258 |
# File 'lib/ovirtsdk4/types.rb', line 23256 def value=(value) @value = value end |
#version ⇒ String
Returns the value of the version attribute.
23265 23266 23267 |
# File 'lib/ovirtsdk4/types.rb', line 23265 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version attribute.
23274 23275 23276 |
# File 'lib/ovirtsdk4/types.rb', line 23274 def version=(value) @version = value end |