Class: VBox::WebsessionManager
- Inherits:
-
Base
- Object
- Base
- VBox::WebsessionManager
show all
- Defined in:
- lib/virtualbox/classes/websession_manager.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#delete!, #ensure_hash, #vbox_class
Constructor Details
Returns a new instance of WebsessionManager.
6
7
8
|
# File 'lib/virtualbox/classes/websession_manager.rb', line 6
def initialize(obj_ref=nil)
super
end
|
Instance Attribute Details
#ref ⇒ Object
Returns the value of attribute ref.
4
5
6
|
# File 'lib/virtualbox/classes/websession_manager.rb', line 4
def ref
@ref
end
|
Instance Method Details
#_this ⇒ Object
10
11
12
13
14
|
# File 'lib/virtualbox/classes/websession_manager.rb', line 10
def _this
_this = {}
_this[:ref_i_virtual_box] = @ref
_this
end
|
#get_session_object ⇒ Object
28
29
30
31
|
# File 'lib/virtualbox/classes/websession_manager.rb', line 28
def get_session_object
session = VBox::WebService.send_request(:i_websession_manager_get_session_object, _this)
VBox::Session.new(session)
end
|
#logoff ⇒ Object
23
24
25
26
|
# File 'lib/virtualbox/classes/websession_manager.rb', line 23
def logoff
VBox::WebService.send_request(:i_websession_manager_logoff, _this)
@ref = nil
end
|
#logon(args = {}) ⇒ Object
16
17
18
19
20
21
|
# File 'lib/virtualbox/classes/websession_manager.rb', line 16
def logon(args={})
ensure_hash(args)
key = VBox::WebService.send_request(:i_websession_manager_logon, args)
@ref = key
VBox::VirtualBox.new(key)
end
|