Class: VBox::EventListener
- Defined in:
- lib/virtualbox/classes/event_listener.rb
Instance Attribute Summary collapse
-
#ref ⇒ Object
readonly
Returns the value of attribute ref.
Instance Method Summary collapse
-
#handle_event(args = {}) ⇒ Object
Methods.
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/event_listener.rb', line 4 def ref @ref end |
Instance Method Details
#handle_event(args = {}) ⇒ Object
Methods
8 9 10 11 12 |
# File 'lib/virtualbox/classes/event_listener.rb', line 8 def handle_event(args={}) ensure_hash(args) args[:event] = args[:event].ref if args.has_key?(:event) & args[:event].respond_to?(:ref) VBox::WebService.send_request(:i_event_listener_handle_event, _this.merge(args)) end |