Class: OvirtSDK4::SystemOption
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::SystemOption
- 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. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#initialize(opts = {}) ⇒ SystemOption
constructor
Creates a new instance of the SystemOption class.
-
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#values ⇒ Array<SystemOptionValue>
Returns the value of the
values
attribute. -
#values=(list) ⇒ Object
Sets the value of the
values
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ SystemOption
Creates a new instance of the OvirtSDK4::SystemOption class.
22474 22475 22476 22477 |
# File 'lib/ovirtsdk4/types.rb', line 22474 def initialize(opts = {}) super(opts) self.values = opts[:values] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
22482 22483 22484 22485 |
# File 'lib/ovirtsdk4/types.rb', line 22482 def ==(other) super && @values == other.values end |
#comment ⇒ String
Returns the value of the comment
attribute.
22363 22364 22365 |
# File 'lib/ovirtsdk4/types.rb', line 22363 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
22372 22373 22374 |
# File 'lib/ovirtsdk4/types.rb', line 22372 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
22381 22382 22383 |
# File 'lib/ovirtsdk4/types.rb', line 22381 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
22390 22391 22392 |
# File 'lib/ovirtsdk4/types.rb', line 22390 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
22490 22491 22492 22493 |
# File 'lib/ovirtsdk4/types.rb', line 22490 def hash super + @values.hash end |
#id ⇒ String
Returns the value of the id
attribute.
22399 22400 22401 |
# File 'lib/ovirtsdk4/types.rb', line 22399 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
22408 22409 22410 |
# File 'lib/ovirtsdk4/types.rb', line 22408 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
22417 22418 22419 |
# File 'lib/ovirtsdk4/types.rb', line 22417 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
22426 22427 22428 |
# File 'lib/ovirtsdk4/types.rb', line 22426 def name=(value) @name = value end |
#values ⇒ Array<SystemOptionValue>
Returns the value of the values
attribute.
22435 22436 22437 |
# File 'lib/ovirtsdk4/types.rb', line 22435 def values @values end |
#values=(list) ⇒ Object
Sets the value of the values
attribute.
22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 |
# File 'lib/ovirtsdk4/types.rb', line 22444 def values=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = SystemOptionValue.new(value) end end end @values = list end |