class Fog::Storage::Akamai::Files

Public Instance Methods

all() click to toggle source
# File lib/fog/akamai/models/storage/files.rb, line 11
def all
  requires :directory
  directory.files
end
get(path) click to toggle source
# File lib/fog/akamai/models/storage/files.rb, line 16
def get(path)
  body = service.download(full_path(path, directory)).data[:body]
  new(body: body)
end
new(attributes = {}) click to toggle source
Calls superclass method
# File lib/fog/akamai/models/storage/files.rb, line 27
def new(attributes = {})
  super({ directory: directory }.merge!(attributes))
end
stat(path) click to toggle source
# File lib/fog/akamai/models/storage/files.rb, line 21
def stat(path)
  new(service.stat(full_path(path, directory)).data[:body][:files].first)
rescue Excon::Errors::NotFound
  nil
end