Class: Fog::Storage::External::Directory
- Inherits:
-
Model
- Object
- Model
- Fog::Storage::External::Directory
- Defined in:
- lib/fog/external/models/storage/directory.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
11 12 13 14 15 16 |
# File 'lib/fog/external/models/storage/directory.rb', line 11 def destroy requires :key connection.remote.destroy_directory(identity) true end |
#files ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/fog/external/models/storage/directory.rb', line 18 def files @files ||= begin Fog::Storage::External::Files.new( :directory => self, :connection => connection ) end end |
#public=(new_public) ⇒ Object
27 28 29 |
# File 'lib/fog/external/models/storage/directory.rb', line 27 def public=(new_public) new_public end |
#public_url ⇒ Object
31 32 33 |
# File 'lib/fog/external/models/storage/directory.rb', line 31 def public_url nil end |
#save ⇒ Object
35 36 37 38 39 |
# File 'lib/fog/external/models/storage/directory.rb', line 35 def save requires :key connection.remote.create_directory(identity) end |