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.
22069 22070 22071 22072 |
# File 'lib/ovirtsdk4/types.rb', line 22069 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.
22077 22078 22079 22080 |
# File 'lib/ovirtsdk4/types.rb', line 22077 def ==(other) super && @values == other.values end |
#comment ⇒ String
Returns the value of the comment
attribute.
21958 21959 21960 |
# File 'lib/ovirtsdk4/types.rb', line 21958 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21967 21968 21969 |
# File 'lib/ovirtsdk4/types.rb', line 21967 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
21976 21977 21978 |
# File 'lib/ovirtsdk4/types.rb', line 21976 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21985 21986 21987 |
# File 'lib/ovirtsdk4/types.rb', line 21985 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
22085 22086 22087 22088 |
# File 'lib/ovirtsdk4/types.rb', line 22085 def hash super + @values.hash end |
#id ⇒ String
Returns the value of the id
attribute.
21994 21995 21996 |
# File 'lib/ovirtsdk4/types.rb', line 21994 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
22003 22004 22005 |
# File 'lib/ovirtsdk4/types.rb', line 22003 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
22012 22013 22014 |
# File 'lib/ovirtsdk4/types.rb', line 22012 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
22021 22022 22023 |
# File 'lib/ovirtsdk4/types.rb', line 22021 def name=(value) @name = value end |
#values ⇒ Array<SystemOptionValue>
Returns the value of the values
attribute.
22030 22031 22032 |
# File 'lib/ovirtsdk4/types.rb', line 22030 def values @values end |
#values=(list) ⇒ Object
Sets the value of the values
attribute.
22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 |
# File 'lib/ovirtsdk4/types.rb', line 22039 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 |