Class: Fog::Storage::Softlayer::Directory
- Inherits:
-
Model
- Object
- Model
- Fog::Storage::Softlayer::Directory
- Defined in:
- lib/fog/softlayer/models/storage/directory.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/fog/softlayer/models/storage/directory.rb', line 22 def destroy requires :key service.delete_container(key) true rescue Excon::Errors::NotFound false end |
#files ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/fog/softlayer/models/storage/directory.rb', line 30 def files @files ||= begin Fog::Storage::Softlayer::Files.new( :directory => self, :service => service ) end end |
#public=(new_public) ⇒ Object
39 40 41 |
# File 'lib/fog/softlayer/models/storage/directory.rb', line 39 def public=(new_public) @public = new_public end |
#public_url ⇒ Object
43 44 45 |
# File 'lib/fog/softlayer/models/storage/directory.rb', line 43 def public_url raise NotImplementedError end |
#save ⇒ Object
47 48 49 50 51 |
# File 'lib/fog/softlayer/models/storage/directory.rb', line 47 def save requires :key service.put_container(key) true end |