Method: Fog::Storage::HP::Files#get_url

Defined in:
lib/fog/hp/models/storage/files.rb

#get_url(key) ⇒ Object

[View source]

67
68
69
70
71
72
73
# File 'lib/fog/hp/models/storage/files.rb', line 67

def get_url(key)
  requires :directory
  if self.directory.public_url
    # escape the key to cover for special char. in object names
    "#{self.directory.public_url}/#{Fog::HP.escape(key)}"
  end
end