Class: VBox::Event

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/event.rb

Instance Attribute Summary

Attributes inherited from Base

#ref

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

This class inherits a constructor from VBox::Base

Instance Method Details

#set_processedObject

Methods



21
22
23
# File 'lib/virtualbox/classes/event.rb', line 21

def set_processed
  VBox::WebService.send_request(:i_event_set_processed, _this)
end

#sourceObject



10
11
12
13
# File 'lib/virtualbox/classes/event.rb', line 10

def source
  source = VBox::WebService.send_request(:i_event_get_source, _this)
  VBox::EventSource.new(source)
end

#typeObject

Attributes



6
7
8
# File 'lib/virtualbox/classes/event.rb', line 6

def type
  VBox::WebService.send_request(:i_event_get_type, _this)
end

#wait_processed(args = {}) ⇒ Object



25
26
27
28
# File 'lib/virtualbox/classes/event.rb', line 25

def wait_processed(args={})
  ensure_hash args
  VBox::WebService.send_request(:i_event_set_processed, _this.merge(args))
end

#waitableObject



15
16
17
# File 'lib/virtualbox/classes/event.rb', line 15

def waitable
  VBox::WebService.send_request(:i_event_get_waitable, _this)
end