Class: VBox::Directory

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

Direct Known Subclasses

GuestDirectory

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/directory.rb', line 4

def ref
  @ref
end

Instance Method Details

#closeObject

Methods



18
19
20
# File 'lib/virtualbox/classes/directory.rb', line 18

def close
  VBox::WebService.send_request(:i_directory_close, _this)
end

#directory_nameObject

Attributes



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

def directory_name
  VBox::WebService.send_request(:i_directory_get_directory_name, _this)
end

#filterObject



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

def filter
  VBox::WebService.send_request(:i_directory_get_filter, _this)
end

#readObject



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

def read
  entry = VBox::WebService.send_request(:i_directory_read, _this)
  VBox::FsObjInfo.new(entry)
end