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.
22039 22040 22041 22042 |
# File 'lib/ovirtsdk4/types.rb', line 22039 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.
22047 22048 22049 22050 |
# File 'lib/ovirtsdk4/types.rb', line 22047 def ==(other) super && @values == other.values end |
#comment ⇒ String
Returns the value of the comment
attribute.
21928 21929 21930 |
# File 'lib/ovirtsdk4/types.rb', line 21928 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
21937 21938 21939 |
# File 'lib/ovirtsdk4/types.rb', line 21937 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
21946 21947 21948 |
# File 'lib/ovirtsdk4/types.rb', line 21946 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
21955 21956 21957 |
# File 'lib/ovirtsdk4/types.rb', line 21955 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
22055 22056 22057 22058 |
# File 'lib/ovirtsdk4/types.rb', line 22055 def hash super + @values.hash end |
#id ⇒ String
Returns the value of the id
attribute.
21964 21965 21966 |
# File 'lib/ovirtsdk4/types.rb', line 21964 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
21973 21974 21975 |
# File 'lib/ovirtsdk4/types.rb', line 21973 def id=(value) @id = value end |
#name ⇒ String
Returns the value of the name
attribute.
21982 21983 21984 |
# File 'lib/ovirtsdk4/types.rb', line 21982 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
21991 21992 21993 |
# File 'lib/ovirtsdk4/types.rb', line 21991 def name=(value) @name = value end |
#values ⇒ Array<SystemOptionValue>
Returns the value of the values
attribute.
22000 22001 22002 |
# File 'lib/ovirtsdk4/types.rb', line 22000 def values @values end |
#values=(list) ⇒ Object
Sets the value of the values
attribute.
22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 |
# File 'lib/ovirtsdk4/types.rb', line 22009 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 |