Class: VBox::BandwidthGroup

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

def ref
  @ref
end

Instance Method Details

#max_bytes_per_secObject



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

def max_bytes_per_sec
  VBox::WebService.send_request(:i_bandwidth_group_get_max_bytes_per_sec, _this)
end

#max_bytes_per_sec=(max_bytes_per_sec) ⇒ Object



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

def max_bytes_per_sec=(max_bytes_per_sec)
  VBox::WebService.send_request(:i_bandwidth_group_get_max_bytes_per_sec,
                                _this.merge(:max_bytes_per_sec => max_bytes_per_sec))
end

#nameObject

Attributes



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

def name
  VBox::WebService.send_request(:i_bandwidth_group_get_name, _this)
end

#referenceObject



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

def reference
  VBox::WebService.send_request(:i_bandwidth_group_get_reference, _this)
end

#typeObject



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

def type
  VBox::WebService.send_request(:i_bandwidth_group_get_type, _this)
end