Class: VBox::Event

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

Instance Attribute Summary collapse

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

#refObject (readonly)

Returns the value of attribute ref.



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

def ref
  @ref
end

Instance Method Details

#set_processedObject

Methods



23
24
25
# File 'lib/virtualbox/classes/event.rb', line 23

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

#sourceObject



12
13
14
15
# File 'lib/virtualbox/classes/event.rb', line 12

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

#typeObject

Attributes



8
9
10
# File 'lib/virtualbox/classes/event.rb', line 8

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

#wait_processed(args = {}) ⇒ Object



27
28
29
30
# File 'lib/virtualbox/classes/event.rb', line 27

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

#waitableObject



17
18
19
# File 'lib/virtualbox/classes/event.rb', line 17

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