Class: VBox::DHCPServer

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/dhcp_server.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/dhcp_server.rb', line 4

def ref
  @ref
end

Instance Method Details

#enabledObject

Attributes



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

def enabled
  VBox::WebService.send_request(:i_dhcp_server_get_enabled, _this)
end

#enabled=(enabled) ⇒ Object



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

def enabled=(enabled)
  VBox::WebService.send_request(:i_dhcp_server_set_enabled, _this.merge(:enabled => enabled))
end

#ip_addressObject



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

def ip_address
  VBox::WebService.send_request(:i_dhcp_server_get_ip_address, _this)
end

#lower_ipObject



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

def lower_ip
  VBox::WebService.send_request(:i_dhcp_server_get_lower_ip, _this)
end

#network_maskObject



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

def network_mask
  VBox::WebService.send_request(:i_dhcp_server_get_network_mask, _this)
end

#network_nameObject



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

def network_name
  VBox::WebService.send_request(:i_dhcp_server_get_network_name, _this)
end

#set_configuration(args = {}) ⇒ Object

Methods



38
39
40
41
# File 'lib/virtualbox/classes/dhcp_server.rb', line 38

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

#start(args = {}) ⇒ Object



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

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

#stopObject



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

def stop
  VBox::WebService.send_request(:i_dhcp_server_stop, _this)
end

#upper_ipObject



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

def upper_ip
  VBox::WebService.send_request(:i_dhcp_server_get_upper_ip, _this)
end