Class: Fog::Storage::Dropbox::Directories
- Inherits:
-
Collection
- Object
- Collection
- Fog::Storage::Dropbox::Directories
- Defined in:
- lib/fog/dropbox/models/storage/directories.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 13 |
# File 'lib/fog/dropbox/models/storage/directories.rb', line 10 def all data = service.client.('/') load(data['contents']) end |
#get(key, options = {}) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/fog/dropbox/models/storage/directories.rb', line 15 def get(key, = {}) data = service.client.(key) directory = new(data) directory.files.load(data['contents']) directory rescue DropboxError nil end |