Class: VBox::USBDeviceStateChangedEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/virtualbox/classes/events/usb_device_state_changed_event.rb

Instance Attribute Summary

Attributes inherited from Base

#ref

Instance Method Summary collapse

Methods inherited from Event

#set_processed, #source, #type, #wait_processed, #waitable

Methods inherited from Base

#_this, #delete!, #ensure_hash, #initialize, #vbox_class

Constructor Details

This class inherits a constructor from VBox::Base

Instance Method Details

#attachedObject



11
12
13
# File 'lib/virtualbox/classes/events/usb_device_state_changed_event.rb', line 11

def attached
  VBox::WebService.send_request(:iusb_device_state_changed_event_get_attached, _this)
end

#deviceObject

Attributes



6
7
8
9
# File 'lib/virtualbox/classes/events/usb_device_state_changed_event.rb', line 6

def device
  usb_device = VBox::WebService.send_request(:iusb_device_state_changed_event_get_device, _this)
  VBox::USBDevice.new(usb_device)
end