Module: VirtualBox::COM::Model

Defined in:
lib/virtualbox/com.rb,
lib/virtualbox/com/model/4.2.rb,
lib/virtualbox/com/xpcomc-ffi.rb,
lib/virtualbox/com/model/4.1-generated.rb,
lib/virtualbox/com/model/4.2-generated.rb,
ext/virtualbox-com/loader/vbox-loader.c,
ext/virtualbox-com/4.2/vbox.c,
ext/virtualbox-com/4.1/vbox.c,
ext/virtualbox-com/vbox.c

Overview

The Model module will hold all the model descriptions

Defined Under Namespace

Classes: AccessMode, AdditionsFacility, AdditionsFacilityClass, AdditionsFacilityStatus, AdditionsFacilityType, AdditionsRunLevelType, AdditionsStateChangedEvent, AdditionsUpdateFlag, Appliance, AudioAdapter, AudioControllerType, AudioDriverType, AuthType, AutostopType, BIOSBootMenuMode, BIOSSettings, BandwidthControl, BandwidthGroup, BandwidthGroupChangedEvent, BandwidthGroupType, CPUChangedEvent, CPUExecutionCapChangedEvent, CPUPropertyType, CanShowWindowEvent, ChipsetType, CleanupMode, ClipboardMode, ClipboardModeChangedEvent, CloneMode, CloneOptions, Console, CopyFileFlag, DHCPServer, DataFlags, DataType, DeviceActivity, DeviceType, Directory, DirectoryCreateFlag, DirectoryOpenFlag, DirectoryRemoveRecFlag, Display, DragAndDropAction, DragAndDropMode, DragAndDropModeChangedEvent, Event, EventListener, EventSource, EventSourceChangedEvent, ExecuteProcessFlag, ExecuteProcessStatus, ExtPack, ExtPackBase, ExtPackFile, ExtPackManager, ExtPackPlugIn, ExtraDataCanChangeEvent, ExtraDataChangedEvent, FaultToleranceState, File, FileSeekType, FirmwareType, Framebuffer, FramebufferOverlay, FramebufferPixelFormat, FsObjInfo, FsObjType, Guest, GuestDirEntry, GuestDirEntryType, GuestDirectory, GuestFile, GuestFsObjInfo, GuestKeyboardEvent, GuestMonitorChangedEvent, GuestMonitorChangedEventType, GuestMouseEvent, GuestOSType, GuestProcess, GuestPropertyChangedEvent, GuestSession, HWVirtExPropertyType, Host, HostNetworkInterface, HostNetworkInterfaceMediumType, HostNetworkInterfaceStatus, HostNetworkInterfaceType, HostPCIDevicePlugEvent, HostPciDevicePlugEvent, HostUSBDevice, HostUSBDeviceFilter, ImportOptions, InternalMachineControl, InternalSessionControl, Keyboard, KeyboardHIDType, KeyboardHidType, KeyboardLedsChangedEvent, LockType, Machine, MachineDataChangedEvent, MachineDebugger, MachineEvent, MachineRegisteredEvent, MachineState, MachineStateChangedEvent, Medium, MediumAttachment, MediumChangedEvent, MediumFormat, MediumFormatCapabilities, MediumRegisteredEvent, MediumState, MediumType, MediumVariant, Mouse, MouseButtonState, MouseCapabilityChangedEvent, MousePointerShapeChangedEvent, NATAliasMode, NATEngine, NATProtocol, NATRedirectEvent, NSIException, NSISupports, NetworkAdapter, NetworkAdapterChangedEvent, NetworkAdapterPromiscModePolicy, NetworkAdapterType, NetworkAttachmentType, PCIAddress, PCIDeviceAttachment, ParallelPort, ParallelPortChangedEvent, PathRenameFlag, PciAddress, PciDeviceAttachment, PerformanceCollector, PerformanceMetric, PointingHIDType, PointingHidType, PortMode, Process, ProcessCreateFlag, ProcessInputFlag, ProcessOutputFlag, ProcessPriority, ProcessStatus, ProcessWaitForFlag, ProcessWaitResult, ProcessorFeature, Progress, ReusableEvent, RuntimeErrorEvent, Scope, SerialPort, SerialPortChangedEvent, Session, SessionState, SessionStateChangedEvent, SessionType, SettingsVersion, SharedFolder, SharedFolderChangedEvent, ShowWindowEvent, Snapshot, SnapshotChangedEvent, SnapshotDeletedEvent, SnapshotEvent, SnapshotTakenEvent, StateChangedEvent, StorageBus, StorageController, StorageControllerChangedEvent, StorageControllerType, StorageDeviceChangedEvent, SymlinkReadFlag, SymlinkType, SystemProperties, USBController, USBControllerChangedEvent, USBDevice, USBDeviceFilter, USBDeviceFilterAction, USBDeviceState, USBDeviceStateChangedEvent, VBoxEventType, VBoxSVCAvailabilityChangedEvent, VFSExplorer, VFSFileType, VFSType, VRDEServer, VRDEServerChangedEvent, VRDEServerInfo, VRDEServerInfoChangedEvent, VetoEvent, VirtualBox, VirtualBoxClient, VirtualBoxErrorInfo, VirtualSystemDescription, VirtualSystemDescriptionType, VirtualSystemDescriptionValueType

Class Method Summary collapse

Class Method Details

.create(name, *args) ⇒ Object



14
15
16
# File 'lib/virtualbox/com/xpcomc-ffi.rb', line 14

def self.create(name, *args)
    self.get(name).new(*args)
end

.fetch(name) ⇒ Object



14
15
16
17
18
# File 'lib/virtualbox/com.rb', line 14

def self.fetch(name)
    self.const_get(name, false)
rescue NameError
    nil
end

.get(name) ⇒ Object



8
9
10
11
12
# File 'lib/virtualbox/com.rb', line 8

def self.get(name)
    self.const_get(name, false)
rescue NameError
    raise ModelNotFoundException, name
end