Module: Fog::Storage::OpenStack::PublicUrl
Instance Method Summary collapse
-
#public_url(container = nil, object = nil) ⇒ Object
Get public_url for an object.
Instance Method Details
#public_url(container = nil, object = nil) ⇒ Object
Get public_url for an object
Parameters
-
container<~String> - Name of container to look in
-
object<~String> - Name of object to look for
11 12 13 14 15 16 |
# File 'lib/fog/storage/openstack/requests/public_url.rb', line 11 def public_url(container = nil, object = nil) return nil if container.nil? u = "#{url}/#{Fog::OpenStack.escape(container)}" u << "/#{Fog::OpenStack.escape(object)}" unless object.nil? u end |