Class: OvirtSDK4::Bios
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::Bios
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (BootMenu) boot_menu
Returns the value of the
boot_menu
attribute. -
- (Object) boot_menu=(value)
Sets the value of the
boot_menu
attribute. -
- (Bios) initialize(opts = {})
constructor
Creates a new instance of the Bios class.
Methods included from Type
Constructor Details
- (Bios) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Bios class.
1079 1080 1081 1082 |
# File 'lib/ovirtsdk4/types.rb', line 1079 def initialize(opts = {}) super(opts) self. = opts[:boot_menu] end |
Instance Method Details
- (BootMenu) boot_menu
Returns the value of the boot_menu
attribute.
1049 1050 1051 |
# File 'lib/ovirtsdk4/types.rb', line 1049 def return @boot_menu end |
- (Object) boot_menu=(value)
Sets the value of the boot_menu
attribute.
The value
parameter can be an instance of OvirtSDK4::BootMenu 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.
1062 1063 1064 1065 1066 1067 |
# File 'lib/ovirtsdk4/types.rb', line 1062 def (value) if value.is_a?(Hash) value = BootMenu.new(value) end @boot_menu = value end |