Class: VBox::Host
- Inherits:
-
Base
show all
- Defined in:
- lib/virtualbox/classes/host.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
#ref ⇒ Object
Returns the value of attribute ref.
4
5
6
|
# File 'lib/virtualbox/classes/host.rb', line 4
def ref
@ref
end
|
Instance Method Details
#acceleration_3d_available ⇒ Object
75
76
77
|
# File 'lib/virtualbox/classes/host.rb', line 75
def acceleration_3d_available
VBox::WebService.send_request(:i_host_get_acceleration_3d_available, _this)
end
|
#create_host_only_network_interface ⇒ Object
#create_usb_device_filter(args = {}) ⇒ Object
88
89
90
91
92
|
# File 'lib/virtualbox/classes/host.rb', line 88
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_drives ⇒ Object
8
9
10
11
12
13
|
# File 'lib/virtualbox/classes/host.rb', line 8
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
94
95
96
97
98
|
# File 'lib/virtualbox/classes/host.rb', line 94
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
100
101
102
103
104
|
# File 'lib/virtualbox/classes/host.rb', line 100
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
106
107
108
109
110
|
# File 'lib/virtualbox/classes/host.rb', line 106
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
112
113
114
115
116
117
118
|
# File 'lib/virtualbox/classes/host.rb', line 112
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
120
121
122
123
124
|
# File 'lib/virtualbox/classes/host.rb', line 120
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
126
127
128
129
130
|
# File 'lib/virtualbox/classes/host.rb', line 126
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_drives ⇒ Object
15
16
17
18
19
20
|
# File 'lib/virtualbox/classes/host.rb', line 15
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_address ⇒ Object
132
133
134
|
# File 'lib/virtualbox/classes/host.rb', line 132
def generate_mac_address
VBox::WebService.send_request(:i_host_generate_mac_address, _this)
end
|
#get_processor_cpuid_leaf(args = {}) ⇒ Object
136
137
138
139
|
# File 'lib/virtualbox/classes/host.rb', line 136
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
141
142
143
144
|
# File 'lib/virtualbox/classes/host.rb', line 141
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
146
147
148
149
|
# File 'lib/virtualbox/classes/host.rb', line 146
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
151
152
153
154
|
# File 'lib/virtualbox/classes/host.rb', line 151
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
156
157
158
159
160
|
# File 'lib/virtualbox/classes/host.rb', line 156
def insert_usb_device_filter(args={})
ensure_hash(args)
args[:filter] = args[:filter].ref if args.has_key?(:filter) & args[:filter].respond_to?(:ref)
VBox::WebService.send_request(:i_host_insert_usb_device_filter, _this.merge(args))
end
|
#memory_available ⇒ Object
59
60
61
|
# File 'lib/virtualbox/classes/host.rb', line 59
def memory_available
VBox::WebService.send_request(:i_host_get_memory_available, _this)
end
|
#memory_size ⇒ Object
55
56
57
|
# File 'lib/virtualbox/classes/host.rb', line 55
def memory_size
VBox::WebService.send_request(:i_host_get_memory_size, _this)
end
|
#network_interfaces ⇒ Object
36
37
38
39
40
41
|
# File 'lib/virtualbox/classes/host.rb', line 36
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_system ⇒ Object
63
64
65
|
# File 'lib/virtualbox/classes/host.rb', line 63
def operating_system
VBox::WebService.send_request(:i_host_get_operating_system, _this)
end
|
#os_version ⇒ Object
67
68
69
|
# File 'lib/virtualbox/classes/host.rb', line 67
def os_version
VBox::WebService.send_request(:i_host_get_os_version, _this)
end
|
#processor_core_count ⇒ Object
51
52
53
|
# File 'lib/virtualbox/classes/host.rb', line 51
def processor_core_count
VBox::WebService.send_request(:i_host_get_processor_core_count, _this)
end
|
#processor_count ⇒ Object
43
44
45
|
# File 'lib/virtualbox/classes/host.rb', line 43
def processor_count
VBox::WebService.send_request(:i_host_get_processor_count, _this)
end
|
#processor_online_count ⇒ Object
47
48
49
|
# File 'lib/virtualbox/classes/host.rb', line 47
def processor_online_count
VBox::WebService.send_request(:i_host_get_processor_online_count, _this)
end
|
#remove_host_only_network_interface(args = {}) ⇒ Object
162
163
164
165
|
# File 'lib/virtualbox/classes/host.rb', line 162
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
167
168
169
170
|
# File 'lib/virtualbox/classes/host.rb', line 167
def remove_usb_device_filter(args={})
ensure_hash(args)
VBox::WebService.send_request(:i_host_remove_usb_device_filter, _this.merge(args))
end
|
#usb_devices ⇒ Object
22
23
24
25
26
27
|
# File 'lib/virtualbox/classes/host.rb', line 22
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_filters ⇒ Object
29
30
31
32
33
34
|
# File 'lib/virtualbox/classes/host.rb', line 29
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_time ⇒ Object
71
72
73
|
# File 'lib/virtualbox/classes/host.rb', line 71
def utc_time
VBox::WebService.send_request(:i_host_get_utc_time, _this)
end
|