Class: VBox::StorageController

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/storage_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#_this, #delete!, #ensure_hash, #initialize, #vbox_class

Constructor Details

This class inherits a constructor from VBox::Base

Instance Attribute Details

#refObject (readonly)

Returns the value of attribute ref.



4
5
6
# File 'lib/virtualbox/classes/storage_controller.rb', line 4

def ref
  @ref
end

Instance Method Details

#bootableObject



56
57
58
# File 'lib/virtualbox/classes/storage_controller.rb', line 56

def bootable
  VBox::WebService.send_request(:i_storage_controller_get_bootable, _this)
end

#busObject



36
37
38
# File 'lib/virtualbox/classes/storage_controller.rb', line 36

def bus
  VBox::WebService.send_request(:i_storage_controller_get_bus, _this)
end

#controller_typeObject



40
41
42
# File 'lib/virtualbox/classes/storage_controller.rb', line 40

def controller_type
  VBox::WebService.send_request(:i_storage_controller_get_controller_type, _this)
end

#controller_type=(controller_type) ⇒ Object



44
45
46
# File 'lib/virtualbox/classes/storage_controller.rb', line 44

def controller_type=(controller_type)
  VBox::WebService.send_request(:i_storage_controller_set_controller_type, _this.merge(:controller_type => controller_type))
end

#instanceObject



20
21
22
# File 'lib/virtualbox/classes/storage_controller.rb', line 20

def instance
  VBox::WebService.send_request(:i_storage_controller_get_instance, _this)
end

#instance=(instance) ⇒ Object



24
25
26
# File 'lib/virtualbox/classes/storage_controller.rb', line 24

def instance=(instance)
  VBox::WebService.send_request(:i_storage_controller_set_instance, _this.merge(:instance => instance))
end

#max_devices_per_port_countObject



12
13
14
# File 'lib/virtualbox/classes/storage_controller.rb', line 12

def max_devices_per_port_count
  VBox::WebService.send_request(:i_storage_controller_get_max_devices_per_port_count, _this)
end

#min_port_countObject



16
17
18
# File 'lib/virtualbox/classes/storage_controller.rb', line 16

def min_port_count
  VBox::WebService.send_request(:i_storage_controller_get_min_port_count, _this)
end

#nameObject

Attributes



8
9
10
# File 'lib/virtualbox/classes/storage_controller.rb', line 8

def name
  VBox::WebService.send_request(:i_storage_controller_get_name, _this)
end

#port_countObject



28
29
30
# File 'lib/virtualbox/classes/storage_controller.rb', line 28

def port_count
  VBox::WebService.send_request(:i_storage_controller_get_port_count, _this)
end

#port_count=(port_count) ⇒ Object



32
33
34
# File 'lib/virtualbox/classes/storage_controller.rb', line 32

def port_count=(port_count)
  VBox::WebService.send_request(:i_storage_controller_set_port_count, _this.merge(:port_count => port_count))
end

#use_host_io_cacheObject



48
49
50
# File 'lib/virtualbox/classes/storage_controller.rb', line 48

def use_host_io_cache
  VBox::WebService.send_request(:i_storage_controller_get_use_host_io_cache, _this)
end

#use_host_io_cache=(use_host_io_cache) ⇒ Object



52
53
54
# File 'lib/virtualbox/classes/storage_controller.rb', line 52

def use_host_io_cache=(use_host_io_cache)
  VBox::WebService.send_request(:i_storage_controller_set_use_host_io_cache, _this.merge(:use_host_io_cache => use_host_io_cache))
end