Class: OvirtSDK4::Bios

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Bios) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Bios class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :boot_menu (BootMenu, Hash)

    The value of attribute boot_menu.



1079
1080
1081
1082
# File 'lib/ovirtsdk4/types.rb', line 1079

def initialize(opts = {})
  super(opts)
  self.boot_menu = opts[:boot_menu]
end

Instance Method Details

- (BootMenu) boot_menu

Returns the value of the boot_menu attribute.

Returns:



1049
1050
1051
# File 'lib/ovirtsdk4/types.rb', line 1049

def boot_menu
  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.

Parameters:



1062
1063
1064
1065
1066
1067
# File 'lib/ovirtsdk4/types.rb', line 1062

def boot_menu=(value)
  if value.is_a?(Hash)
    value = BootMenu.new(value)
  end
  @boot_menu = value
end