Class: OvirtSDK4::Boot

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

- (Boot) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Boot 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):

  • :devices (Array<BootDevice>, Array<Hash>)

    The values of attribute devices.



1231
1232
1233
1234
# File 'lib/ovirtsdk4/types.rb', line 1231

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

Instance Method Details

- (Array<BootDevice>) devices

Returns the value of the devices attribute.

Returns:



1209
1210
1211
# File 'lib/ovirtsdk4/types.rb', line 1209

def devices
  return @devices
end

- (Object) devices=(list)

Sets the value of the devices attribute.

Parameters:



1217
1218
1219
# File 'lib/ovirtsdk4/types.rb', line 1217

def devices=(list)
  @devices = list
end