Class: VBox::USBDeviceStateChangedEvent
- Defined in:
- lib/virtualbox/classes/events/usb_device_state_changed_event.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Instance Method Summary collapse
- #attached ⇒ Object
-
#device ⇒ Object
Attributes.
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
#ref ⇒ Object (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
#attached ⇒ Object
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 |
#device ⇒ Object
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 |