Class: OvirtSDK4::Bios
- 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. -
#boot_menu ⇒ BootMenu
Returns the value of the
boot_menu
attribute. -
#boot_menu=(value) ⇒ Object
Sets the value of the
boot_menu
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Bios
constructor
Creates a new instance of the Bios class.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Bios
Creates a new instance of the OvirtSDK4::Bios class.
1386 1387 1388 1389 |
# File 'lib/ovirtsdk4/types.rb', line 1386 def initialize(opts = {}) super(opts) self. = opts[:boot_menu] end |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
1394 1395 1396 1397 |
# File 'lib/ovirtsdk4/types.rb', line 1394 def ==(other) super && @boot_menu == other. end |
#boot_menu ⇒ BootMenu
Returns the value of the boot_menu
attribute.
1356 1357 1358 |
# File 'lib/ovirtsdk4/types.rb', line 1356 def @boot_menu end |
#boot_menu=(value) ⇒ Object
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.
1369 1370 1371 1372 1373 1374 |
# File 'lib/ovirtsdk4/types.rb', line 1369 def (value) if value.is_a?(Hash) value = BootMenu.new(value) end @boot_menu = value end |
#hash ⇒ Object
Generates a hash value for this object.
1402 1403 1404 1405 |
# File 'lib/ovirtsdk4/types.rb', line 1402 def hash super + @boot_menu.hash end |