Class: OvirtSDK4::OperatingSystemInfo
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::OperatingSystemInfo
- 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 = {}) ⇒ OperatingSystemInfo
constructor
Creates a new instance of the OperatingSystemInfo class.
-
#large_icon ⇒ Icon
Returns the value of the
large_icon
attribute. -
#large_icon=(value) ⇒ Object
Sets the value of the
large_icon
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#small_icon ⇒ Icon
Returns the value of the
small_icon
attribute. -
#small_icon=(value) ⇒ Object
Sets the value of the
small_icon
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OperatingSystemInfo
Creates a new instance of the OvirtSDK4::OperatingSystemInfo class.
12935 12936 12937 12938 12939 |
# File 'lib/ovirtsdk4/types.rb', line 12935 def initialize(opts = {}) super(opts) self.large_icon = opts[:large_icon] self.small_icon = opts[:small_icon] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
12944 12945 12946 12947 12948 |
# File 'lib/ovirtsdk4/types.rb', line 12944 def ==(other) super && @large_icon == other.large_icon && @small_icon == other.small_icon end |
#comment ⇒ String
Returns the value of the comment
attribute.
12798 12799 12800 |
# File 'lib/ovirtsdk4/types.rb', line 12798 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
12807 12808 12809 |
# File 'lib/ovirtsdk4/types.rb', line 12807 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
12816 12817 12818 |
# File 'lib/ovirtsdk4/types.rb', line 12816 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
12825 12826 12827 |
# File 'lib/ovirtsdk4/types.rb', line 12825 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
12953 12954 12955 12956 12957 |
# File 'lib/ovirtsdk4/types.rb', line 12953 def hash super + @large_icon.hash + @small_icon.hash end |
#id ⇒ String
Returns the value of the id
attribute.
12834 12835 12836 |
# File 'lib/ovirtsdk4/types.rb', line 12834 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
12843 12844 12845 |
# File 'lib/ovirtsdk4/types.rb', line 12843 def id=(value) @id = value end |
#large_icon ⇒ Icon
Returns the value of the large_icon
attribute.
12852 12853 12854 |
# File 'lib/ovirtsdk4/types.rb', line 12852 def large_icon @large_icon end |
#large_icon=(value) ⇒ Object
Sets the value of the large_icon
attribute.
The value
parameter can be an instance of Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
12865 12866 12867 12868 12869 12870 |
# File 'lib/ovirtsdk4/types.rb', line 12865 def large_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @large_icon = value end |
#name ⇒ String
Returns the value of the name
attribute.
12877 12878 12879 |
# File 'lib/ovirtsdk4/types.rb', line 12877 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
12886 12887 12888 |
# File 'lib/ovirtsdk4/types.rb', line 12886 def name=(value) @name = value end |
#small_icon ⇒ Icon
Returns the value of the small_icon
attribute.
12895 12896 12897 |
# File 'lib/ovirtsdk4/types.rb', line 12895 def small_icon @small_icon end |
#small_icon=(value) ⇒ Object
Sets the value of the small_icon
attribute.
The value
parameter can be an instance of Icon or a hash.
If it is a hash then a new instance will be created passing the hash as the
opts
parameter to the constructor.
12908 12909 12910 12911 12912 12913 |
# File 'lib/ovirtsdk4/types.rb', line 12908 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |