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.
22947 22948 22949 22950 |
# File 'lib/ovirtsdk4/types.rb', line 22947 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.
22955 22956 22957 22958 |
# File 'lib/ovirtsdk4/types.rb', line 22955 def ==(other) super && @values == other.values end |
#comment ⇒ String
Returns the value of the comment
attribute.
22836 22837 22838 |
# File 'lib/ovirtsdk4/types.rb', line 22836 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
22845 22846 22847 |
# File 'lib/ovirtsdk4/types.rb', line 22845 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
22854 22855 22856 |
# File 'lib/ovirtsdk4/types.rb', line 22854 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
22863 22864 22865 |
# File 'lib/ovirtsdk4/types.rb', line 22863 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
22963 22964 22965 22966 |
# File 'lib/ovirtsdk4/types.rb', line 22963 def hash super + @values.hash end |
#id ⇒ String
Returns the value of the id
attribute.
22872 22873 22874 |
# File 'lib/ovirtsdk4/types.rb', line 22872 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
22881 22882 22883 |
# File 'lib/ovirtsdk4/types.rb', line 22881 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
22890 22891 22892 |
# File 'lib/ovirtsdk4/types.rb', line 22890 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
22899 22900 22901 |
# File 'lib/ovirtsdk4/types.rb', line 22899 def name=(value) @name = value end |
#values ⇒ Array<SystemOptionValue>
Returns the value of the values
attribute.
22908 22909 22910 |
# File 'lib/ovirtsdk4/types.rb', line 22908 def values @values end |
#values=(list) ⇒ Object
Sets the value of the values
attribute.
22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 |
# File 'lib/ovirtsdk4/types.rb', line 22917 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 |