Class: VBox::USBDeviceStateChangedEvent

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

Instance Attribute Summary collapse

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 Attribute Details

#refObject (readonly)

Returns the value of attribute ref.



4
5
6
# File 'lib/virtualbox/classes/events/usb_device_state_changed_event.rb', line 4

def ref
  @ref
end

Instance Method Details

#attachedObject



13
14
15
# File 'lib/virtualbox/classes/events/usb_device_state_changed_event.rb', line 13

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

#deviceObject

Attributes



8
9
10
11
# File 'lib/virtualbox/classes/events/usb_device_state_changed_event.rb', line 8

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