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.
22547 22548 22549 22550 22551 |
# File 'lib/ovirtsdk4/types.rb', line 22547 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.
22556 22557 22558 22559 22560 |
# File 'lib/ovirtsdk4/types.rb', line 22556 def ==(other) super && @value == other.value && @version == other.version end |
#hash ⇒ Object
Generates a hash value for this object.
22565 22566 22567 22568 22569 |
# File 'lib/ovirtsdk4/types.rb', line 22565 def hash super + @value.hash + @version.hash end |
#value ⇒ String
Returns the value of the value
attribute.
22504 22505 22506 |
# File 'lib/ovirtsdk4/types.rb', line 22504 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
22513 22514 22515 |
# File 'lib/ovirtsdk4/types.rb', line 22513 def value=(value) @value = value end |
#version ⇒ String
Returns the value of the version
attribute.
22522 22523 22524 |
# File 'lib/ovirtsdk4/types.rb', line 22522 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
22531 22532 22533 |
# File 'lib/ovirtsdk4/types.rb', line 22531 def version=(value) @version = value end |