Class: VBox::DHCPServer
- Inherits:
-
Base
- Object
- Base
- VBox::DHCPServer
show all
- Defined in:
- lib/virtualbox/classes/dhcp_server.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
#enabled ⇒ Object
6
7
8
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 6
def enabled
VBox::WebService.send_request(:i_dhcp_server_get_enabled, _this)
end
|
#enabled=(enabled) ⇒ Object
10
11
12
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 10
def enabled=(enabled)
VBox::WebService.send_request(:i_dhcp_server_set_enabled, _this.merge(:enabled => enabled))
end
|
#ip_address ⇒ Object
14
15
16
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 14
def ip_address
VBox::WebService.send_request(:i_dhcp_server_get_ip_address, _this)
end
|
#lower_ip ⇒ Object
26
27
28
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 26
def lower_ip
VBox::WebService.send_request(:i_dhcp_server_get_lower_ip, _this)
end
|
#network_mask ⇒ Object
18
19
20
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 18
def network_mask
VBox::WebService.send_request(:i_dhcp_server_get_network_mask, _this)
end
|
#network_name ⇒ Object
22
23
24
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 22
def network_name
VBox::WebService.send_request(:i_dhcp_server_get_network_name, _this)
end
|
#set_configuration(args = {}) ⇒ Object
36
37
38
39
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 36
def set_configuration(args={})
ensure_hash args
VBox::WebService.send_request(:i_dhcp_server_set_configuration, _this.merge(args))
end
|
#start(args = {}) ⇒ Object
41
42
43
44
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 41
def start(args={})
ensure_hash args
VBox::WebService.send_request(:i_dhcp_server_start, _this.merge(args))
end
|
#stop ⇒ Object
46
47
48
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 46
def stop
VBox::WebService.send_request(:i_dhcp_server_stop, _this)
end
|
#upper_ip ⇒ Object
30
31
32
|
# File 'lib/virtualbox/classes/dhcp_server.rb', line 30
def upper_ip
VBox::WebService.send_request(:i_dhcp_server_get_upper_ip, _this)
end
|