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. -
#architecture ⇒ Architecture
Returns the value of the
architecture
attribute. -
#architecture=(value) ⇒ Object
Sets the value of the
architecture
attribute. -
#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.
13314 13315 13316 13317 13318 13319 |
# File 'lib/ovirtsdk4/types.rb', line 13314 def initialize(opts = {}) super(opts) self.architecture = opts[:architecture] 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.
13324 13325 13326 13327 13328 13329 |
# File 'lib/ovirtsdk4/types.rb', line 13324 def ==(other) super && @architecture == other.architecture && @large_icon == other.large_icon && @small_icon == other.small_icon end |
#architecture ⇒ Architecture
Returns the value of the architecture
attribute.
13157 13158 13159 |
# File 'lib/ovirtsdk4/types.rb', line 13157 def architecture @architecture end |
#architecture=(value) ⇒ Object
Sets the value of the architecture
attribute.
13166 13167 13168 |
# File 'lib/ovirtsdk4/types.rb', line 13166 def architecture=(value) @architecture = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
13175 13176 13177 |
# File 'lib/ovirtsdk4/types.rb', line 13175 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
13184 13185 13186 |
# File 'lib/ovirtsdk4/types.rb', line 13184 def comment=(value) @comment = value end |
#description ⇒ String
Returns the value of the description
attribute.
13193 13194 13195 |
# File 'lib/ovirtsdk4/types.rb', line 13193 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
13202 13203 13204 |
# File 'lib/ovirtsdk4/types.rb', line 13202 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
13334 13335 13336 13337 13338 13339 |
# File 'lib/ovirtsdk4/types.rb', line 13334 def hash super + @architecture.hash + @large_icon.hash + @small_icon.hash end |
#id ⇒ String
Returns the value of the id
attribute.
13211 13212 13213 |
# File 'lib/ovirtsdk4/types.rb', line 13211 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
13220 13221 13222 |
# File 'lib/ovirtsdk4/types.rb', line 13220 def id=(value) @id = value end |
#large_icon ⇒ Icon
Returns the value of the large_icon
attribute.
13229 13230 13231 |
# File 'lib/ovirtsdk4/types.rb', line 13229 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.
13242 13243 13244 13245 13246 13247 |
# File 'lib/ovirtsdk4/types.rb', line 13242 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.
13254 13255 13256 |
# File 'lib/ovirtsdk4/types.rb', line 13254 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
13263 13264 13265 |
# File 'lib/ovirtsdk4/types.rb', line 13263 def name=(value) @name = value end |
#small_icon ⇒ Icon
Returns the value of the small_icon
attribute.
13272 13273 13274 |
# File 'lib/ovirtsdk4/types.rb', line 13272 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.
13285 13286 13287 13288 13289 13290 |
# File 'lib/ovirtsdk4/types.rb', line 13285 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |