Class: VBox::DHCPServer

Inherits:
Base
  • Object
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

#enabledObject

Attributes



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_addressObject



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_ipObject



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_maskObject



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_nameObject



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

Methods



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

#stopObject



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_ipObject



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