Class: Fog::Storage::External::Directories

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/external/models/storage/directories.rb

Instance Method Summary collapse

Instance Method Details

#allObject



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