class Fog::Storage::Softlayer::Directory

Public Instance Methods

destroy() click to toggle source
# 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() click to toggle source
# 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() click to toggle source
# File lib/fog/softlayer/models/storage/directory.rb, line 43
def public
  !!attributes[:public]
end
Also aliased as: public?
public=(new_public) click to toggle source
# File lib/fog/softlayer/models/storage/directory.rb, line 39
def public=(new_public)
  attributes[:public] = new_public
end
public?()
Alias for: public
public_url() click to toggle source
# File lib/fog/softlayer/models/storage/directory.rb, line 48
def public_url
  requires :key
  cluster = service.cluster.downcase
  key = Fog::Softlayer.escape(self.key)
  "http://17532.http.#{cluster}.cdn.softlayer.net/#{key}"
end
save() click to toggle source
# File lib/fog/softlayer/models/storage/directory.rb, line 55
def save
  requires :key
  service.put_container(key, public)
  true
end