Class: VBox::VFSExplorer

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/vfs_explorer.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/vfs_explorer.rb', line 4

def ref
  @ref
end

Instance Method Details

#cd(args = {}) ⇒ Object

Methods



18
19
20
21
22
# File 'lib/virtualbox/classes/vfs_explorer.rb', line 18

def cd(args={})
  ensure_hash(args)
  progress = VBox::WebService.send_request(:ivfs_explorer_cd, _this.merge(args))
  VBox::Progress.new(progress)
end

#cd_up(args = {}) ⇒ Object



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

def cd_up(args={})
  ensure_hash(args)
  progress = VBox::WebService.send_request(:ivfs_explorer_cd_up, _this.merge(args))
  VBox::Progress.new(progress)
end

#entry_list(args = {}) ⇒ Object



30
31
32
# File 'lib/virtualbox/classes/vfs_explorer.rb', line 30

def entry_list(args={})
  VBox::WebService.send_request(:ivfs_explorer_entry_list, _this.merge(args))
end

#exists(args = {}) ⇒ Object



34
35
36
37
# File 'lib/virtualbox/classes/vfs_explorer.rb', line 34

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

#pathObject

Attributes



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

def path
  VBox::WebService.send_request(:ivfs_explorer_get_path, _this)
end

#remove(args = {}) ⇒ Object



39
40
41
42
43
# File 'lib/virtualbox/classes/vfs_explorer.rb', line 39

def remove(args={})
  ensure_hash(args)
  progress = VBox::WebService.send_request(:ivfs_explorer_remove, _this.merge(args))
  VBox::Progress.new(progress)
end

#typeObject



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

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

#update(args = {}) ⇒ Object



45
46
47
48
49
# File 'lib/virtualbox/classes/vfs_explorer.rb', line 45

def update(args={})
  ensure_hash(args)
  progress = VBox::WebService.send_request(:ivfs_explorer_update, _this.merge(args))
  VBox::Progress.new(progress)
end