Class: VBox::Base
- Inherits:
-
Object
show all
- Defined in:
- lib/virtualbox/base.rb
Direct Known Subclasses
AdditionsFacility, Appliance, AudioAdapter, BIOSSettings, BandwidthControl, BandwidthGroup, Console, DHCPServer, Directory, Display, Event, EventListener, EventSource, File, FsObjInfo, Guest, GuestSession, Host, HostNetworkInterface, Keyboard, Machine, ManagedObjectRef, Medium, MediumFormat, Mouse, NATEngine, NetworkAdapter, ParallelPort, PerformanceCollector, PerformanceMetric, Process, Progress, SerialPort, Session, SharedFolder, Snapshot, StorageController, SystemProperties, USBController, USBDevice, USBDeviceFilter, VFSExplorer, VRDEServer, VRDEServerInfo, VirtualBox, VirtualBoxErrorInfo, VirtualSystemDescription, WebsessionManager
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(obj_ref) ⇒ Base
Returns a new instance of Base.
6
7
8
|
# File 'lib/virtualbox/base.rb', line 6
def initialize(obj_ref)
@ref = obj_ref
end
|
Instance Attribute Details
#ref ⇒ Object
Returns the value of attribute ref.
4
5
6
|
# File 'lib/virtualbox/base.rb', line 4
def ref
@ref
end
|
Instance Method Details
#_this ⇒ Object
10
11
12
13
14
|
# File 'lib/virtualbox/base.rb', line 10
def _this
_this = {}
_this[:_this] = @ref unless @ref.nil?
_this
end
|
#ensure_hash(args) ⇒ Object
24
25
26
|
# File 'lib/virtualbox/base.rb', line 24
def ensure_hash(args)
raise ArgumentError, 'Method arguments must be a hash' unless args.is_a?(Hash)
end
|
#vbox_class ⇒ Object
16
17
18
|
# File 'lib/virtualbox/base.rb', line 16
def vbox_class
VBox::ManagedObjectRef.new(@ref).get_interface_name
end
|