Class: Fog::Storage::External::Directories
- Inherits:
-
Collection
- Object
- Collection
- Fog::Storage::External::Directories
- Defined in:
- lib/fog/external/models/storage/directories.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
11 12 13 |
# File 'lib/fog/external/models/storage/directories.rb', line 11 def all load(connection.remote.list_directories) end |
#get(id) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/fog/external/models/storage/directories.rb', line 15 def get(id) data = connection.remote.get_directory(id) if data new(data) else nil end end |