Class: OvirtSDK4::OperatingSystemInfo
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::OperatingSystemInfo
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (OperatingSystemInfo) initialize(opts = {})
constructor
Creates a new instance of the OperatingSystemInfo class.
-
- (Icon) large_icon
Returns the value of the
large_icon
attribute. -
- (Object) large_icon=(value)
Sets the value of the
large_icon
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Icon) small_icon
Returns the value of the
small_icon
attribute. -
- (Object) small_icon=(value)
Sets the value of the
small_icon
attribute.
Methods included from Type
Constructor Details
- (OperatingSystemInfo) initialize(opts = {})
Creates a new instance of the OvirtSDK4::OperatingSystemInfo class.
9637 9638 9639 9640 9641 9642 9643 9644 9645 |
# File 'lib/ovirtsdk4/types.rb', line 9637 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.description = opts[:description] self.id = opts[:id] self.large_icon = opts[:large_icon] self.name = opts[:name] self.small_icon = opts[:small_icon] end |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
9500 9501 9502 |
# File 'lib/ovirtsdk4/types.rb', line 9500 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
9509 9510 9511 |
# File 'lib/ovirtsdk4/types.rb', line 9509 def comment=(value) @comment = value end |
- (String) description
Returns the value of the description
attribute.
9518 9519 9520 |
# File 'lib/ovirtsdk4/types.rb', line 9518 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
9527 9528 9529 |
# File 'lib/ovirtsdk4/types.rb', line 9527 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
9536 9537 9538 |
# File 'lib/ovirtsdk4/types.rb', line 9536 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
9545 9546 9547 |
# File 'lib/ovirtsdk4/types.rb', line 9545 def id=(value) @id = value end |
- (Icon) large_icon
Returns the value of the large_icon
attribute.
9554 9555 9556 |
# File 'lib/ovirtsdk4/types.rb', line 9554 def large_icon return @large_icon end |
- (Object) large_icon=(value)
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.
9567 9568 9569 9570 9571 9572 |
# File 'lib/ovirtsdk4/types.rb', line 9567 def large_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @large_icon = value end |
- (String) name
Returns the value of the name
attribute.
9579 9580 9581 |
# File 'lib/ovirtsdk4/types.rb', line 9579 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
9588 9589 9590 |
# File 'lib/ovirtsdk4/types.rb', line 9588 def name=(value) @name = value end |
- (Icon) small_icon
Returns the value of the small_icon
attribute.
9597 9598 9599 |
# File 'lib/ovirtsdk4/types.rb', line 9597 def small_icon return @small_icon end |
- (Object) small_icon=(value)
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.
9610 9611 9612 9613 9614 9615 |
# File 'lib/ovirtsdk4/types.rb', line 9610 def small_icon=(value) if value.is_a?(Hash) value = Icon.new(value) end @small_icon = value end |