Class: VBox::Host

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

Instance Attribute Summary

Attributes inherited from Base

#ref

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 Method Details

#acceleration_3d_availableObject



73
74
75
# File 'lib/virtualbox/classes/host.rb', line 73

def acceleration_3d_available
  VBox::WebService.send_request(:i_host_get_acceleration_3d_available, _this)
end

#create_host_only_network_interfaceObject

Methods



79
80
81
82
83
84
# File 'lib/virtualbox/classes/host.rb', line 79

def create_host_only_network_interface
  progress, host_only_network_interface = VBox::WebService.send_request(:i_host_create_host_only_network_interface,
                                                                        _this)
  [VBox::Progress.new(progress),
   VBox::HostNetworkInterface.new(host_only_network_interface[:host_interface])]
end

#create_usb_device_filter(args = {}) ⇒ Object



86
87
88
89
90
# File 'lib/virtualbox/classes/host.rb', line 86

def create_usb_device_filter(args={})
  ensure_hash args
  usb_device_filter = VBox::WebService.send_request(:i_host_create_usb_device_filter, _this.merge(args))
  VBox::HostUSBDeviceFilter.new(usb_device_filter)
end

#dvd_drivesObject

Attributes



6
7
8
9
10
11
# File 'lib/virtualbox/classes/host.rb', line 6

def dvd_drives
  dvd_drives = VBox::WebService.send_request(:i_host_get_dvd_drives, _this)
  dvd_drives.to_a.map do |dvd_drive|
    VBox::Medium.new(dvd_drive)
  end
end

#find_host_dvd_drive(args = {}) ⇒ Object



92
93
94
95
96
# File 'lib/virtualbox/classes/host.rb', line 92

def find_host_dvd_drive(args={})
  ensure_hash args
  host_dvd_drive = VBox::WebService.send_request(:i_host_find_host_dvd_drive, _this.merge(args))
  VBox::Medium.new(host_dvd_drive)
end

#find_host_floppy_drive(args = {}) ⇒ Object



98
99
100
101
102
# File 'lib/virtualbox/classes/host.rb', line 98

def find_host_floppy_drive(args={})
  ensure_hash args
  host_floppy_drive = VBox::WebService.send_request(:i_host_find_host_floppy_drive, _this.merge(args))
  VBox::Medium.new(host_floppy_drive)
end

#find_host_network_interface_by_id(args = {}) ⇒ Object



104
105
106
107
108
# File 'lib/virtualbox/classes/host.rb', line 104

def find_host_network_interface_by_id(args={})
  ensure_hash args
  host_network_interface = VBox::WebService.send_request(:i_host_find_host_network_interface_by_id, _this.merge(args))
  VBox::HostNetworkInterface.new(host_network_interface)
end

#find_host_network_interfaces_of_type(args = {}) ⇒ Object



110
111
112
113
114
115
116
# File 'lib/virtualbox/classes/host.rb', line 110

def find_host_network_interfaces_of_type(args={})
  ensure_hash args
  host_network_interfaces = VBox::WebService.send_request(:i_host_find_host_network_interfaces_of_type, _this.merge(args))
  host_network_interfaces.map do |host_network_interface|
    VBox::HostNetworkInterface.new(host_network_interface)
  end
end

#find_usb_device_by_address(args = {}) ⇒ Object



118
119
120
121
122
# File 'lib/virtualbox/classes/host.rb', line 118

def find_usb_device_by_address(args={})
  ensure_hash args
  usb_device = VBox::WebService.send_request(:i_host_find_usb_device_by_address, _this.merge(args))
  VBox::HostUSBDevice.new(usb_device)
end

#find_usb_device_by_id(args = {}) ⇒ Object



124
125
126
127
128
# File 'lib/virtualbox/classes/host.rb', line 124

def find_usb_device_by_id(args={})
  ensure_hash args
  usb_device = VBox::WebService.send_request(:i_host_find_usb_device_by_id, _this.merge(args))
  VBox::HostUSBDevice.new(usb_device)
end

#floppy_drivesObject



13
14
15
16
17
18
# File 'lib/virtualbox/classes/host.rb', line 13

def floppy_drives
  floppy_drives = VBox::WebService.send_request(:i_host_get_floppy_drives, _this)
  floppy_drives.to_a.map do |floppy_drive|
    VBox::Medium.new(floppy_drive)
  end
end

#generate_mac_addressObject



130
131
132
# File 'lib/virtualbox/classes/host.rb', line 130

def generate_mac_address
  VBox::WebService.send_request(:i_host_generate_mac_address, _this)
end

#get_processor_cpuid_leaf(args = {}) ⇒ Object



134
135
136
137
# File 'lib/virtualbox/classes/host.rb', line 134

def get_processor_cpuid_leaf(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_host_get_processor_cpuid_leaf, _this.merge(args))
end

#get_processor_description(args = {}) ⇒ Object



139
140
141
142
# File 'lib/virtualbox/classes/host.rb', line 139

def get_processor_description(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_host_get_processor_description, _this.merge(args))
end

#get_processor_feature(args = {}) ⇒ Object



144
145
146
147
# File 'lib/virtualbox/classes/host.rb', line 144

def get_processor_feature(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_host_get_processor_feature, _this.merge(args))
end

#get_processor_speed(args = {}) ⇒ Object



149
150
151
152
# File 'lib/virtualbox/classes/host.rb', line 149

def get_processor_speed(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_host_get_processor_speed, _this.merge(args))
end

#insert_usb_device_filter(args = {}) ⇒ Object



154
155
156
157
158
# File 'lib/virtualbox/classes/host.rb', line 154

def insert_usb_device_filter(args={})
  ensure_hash args
  args.referize! :filter
  VBox::WebService.send_request(:i_host_insert_usb_device_filter, _this.merge(args))
end

#memory_availableObject



57
58
59
# File 'lib/virtualbox/classes/host.rb', line 57

def memory_available
  VBox::WebService.send_request(:i_host_get_memory_available, _this)
end

#memory_sizeObject



53
54
55
# File 'lib/virtualbox/classes/host.rb', line 53

def memory_size
  VBox::WebService.send_request(:i_host_get_memory_size, _this)
end

#network_interfacesObject



34
35
36
37
38
39
# File 'lib/virtualbox/classes/host.rb', line 34

def network_interfaces
  network_interfaces = VBox::WebService.send_request(:i_host_get_network_interfaces, _this)
  network_interfaces.to_a.map do |network_interface|
    VBox::HostNetworkInterface.new(network_interface)
  end
end

#operating_systemObject



61
62
63
# File 'lib/virtualbox/classes/host.rb', line 61

def operating_system
  VBox::WebService.send_request(:i_host_get_operating_system, _this)
end

#os_versionObject



65
66
67
# File 'lib/virtualbox/classes/host.rb', line 65

def os_version
  VBox::WebService.send_request(:i_host_get_os_version, _this)
end

#processor_core_countObject



49
50
51
# File 'lib/virtualbox/classes/host.rb', line 49

def processor_core_count
  VBox::WebService.send_request(:i_host_get_processor_core_count, _this)
end

#processor_countObject



41
42
43
# File 'lib/virtualbox/classes/host.rb', line 41

def processor_count
  VBox::WebService.send_request(:i_host_get_processor_count, _this)
end

#processor_online_countObject



45
46
47
# File 'lib/virtualbox/classes/host.rb', line 45

def processor_online_count
  VBox::WebService.send_request(:i_host_get_processor_online_count, _this)
end

#remove_host_only_network_interface(args = {}) ⇒ Object



160
161
162
163
# File 'lib/virtualbox/classes/host.rb', line 160

def remove_host_only_network_interface(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_host_remove_host_only_network_interface, _this.merge(args))
end

#remove_usb_device_filter(args = {}) ⇒ Object



165
166
167
168
# File 'lib/virtualbox/classes/host.rb', line 165

def remove_usb_device_filter(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_host_remove_usb_device_filter, _this.merge(args))
end

#usb_devicesObject



20
21
22
23
24
25
# File 'lib/virtualbox/classes/host.rb', line 20

def usb_devices
  usb_devices = VBox::WebService.send_request(:i_host_get_usb_devices, _this)
  usb_devices.to_a.map do |usb_device|
    VBox::HostUSBDevice.new(usb_device)
  end
end

#usb_devices_filtersObject



27
28
29
30
31
32
# File 'lib/virtualbox/classes/host.rb', line 27

def usb_devices_filters
  usb_device_filters = VBox::WebService.send_request(:i_host_get_usb_device_filters, _this)
  usb_device_filters.to_a.map do |usb_device_filter|
    VBox::HostUSBDeviceFilter.new(usb_device_filter)
  end
end

#utc_timeObject



69
70
71
# File 'lib/virtualbox/classes/host.rb', line 69

def utc_time
  VBox::WebService.send_request(:i_host_get_utc_time, _this)
end