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.
22267 22268 22269 22270 22271 |
# File 'lib/ovirtsdk4/types.rb', line 22267 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.
22276 22277 22278 22279 22280 |
# File 'lib/ovirtsdk4/types.rb', line 22276 def ==(other) super && @value == other.value && @version == other.version end |
#hash ⇒ Object
Generates a hash value for this object.
22285 22286 22287 22288 22289 |
# File 'lib/ovirtsdk4/types.rb', line 22285 def hash super + @value.hash + @version.hash end |
#value ⇒ String
Returns the value of the value
attribute.
22224 22225 22226 |
# File 'lib/ovirtsdk4/types.rb', line 22224 def value @value end |
#value=(value) ⇒ Object
Sets the value of the value
attribute.
22233 22234 22235 |
# File 'lib/ovirtsdk4/types.rb', line 22233 def value=(value) @value = value end |
#version ⇒ String
Returns the value of the version
attribute.
22242 22243 22244 |
# File 'lib/ovirtsdk4/types.rb', line 22242 def version @version end |
#version=(value) ⇒ Object
Sets the value of the version
attribute.
22251 22252 22253 |
# File 'lib/ovirtsdk4/types.rb', line 22251 def version=(value) @version = value end |