Class: OvirtSDK4::Bios
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#boot_menu ⇒ BootMenu
Returns the value of the
boot_menuattribute. -
#boot_menu=(value) ⇒ Object
Sets the value of the
boot_menuattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ Bios
constructor
Creates a new instance of the Bios class.
-
#type ⇒ BiosType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Bios
Creates a new instance of the OvirtSDK4::Bios class.
1466 1467 1468 1469 1470 |
# File 'lib/ovirtsdk4/types.rb', line 1466 def initialize(opts = {}) super(opts) self. = opts[:boot_menu] self.type = opts[:type] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
1475 1476 1477 1478 1479 |
# File 'lib/ovirtsdk4/types.rb', line 1475 def ==(other) super && == other. && @type == other.type end |
#boot_menu ⇒ BootMenu
Returns the value of the boot_menu attribute.
1416 1417 1418 |
# File 'lib/ovirtsdk4/types.rb', line 1416 def 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.
1429 1430 1431 1432 1433 1434 |
# File 'lib/ovirtsdk4/types.rb', line 1429 def (value) if value.is_a?(Hash) value = BootMenu.new(value) end = value end |
#hash ⇒ Object
Generates a hash value for this object.
1484 1485 1486 1487 1488 |
# File 'lib/ovirtsdk4/types.rb', line 1484 def hash super + .hash + @type.hash end |
#type ⇒ BiosType
Returns the value of the type attribute.
1441 1442 1443 |
# File 'lib/ovirtsdk4/types.rb', line 1441 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
1450 1451 1452 |
# File 'lib/ovirtsdk4/types.rb', line 1450 def type=(value) @type = value end |