Class: VBox::VetoEvent

Inherits:
Event show all
Defined in:
lib/virtualbox/classes/events/veto_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/veto_event.rb', line 4

def ref
  @ref
end

Instance Method Details

#add_veto(args = {}) ⇒ Object

Methods



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

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

#get_vetosObject



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

def get_vetos
  VBox::WebService.send_request(:i_veto_event_get_vetos, _this)
end

#is_vetoedObject



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

def is_vetoed
  VBox::WebService.send_request(:i_veto_event_is_vetod, _this)
end