Sha256: 9e35f03cac2b880b7293794c325bbe7e5c0d41ea1819b9c849928b1ae8e19998
Contents?: true
Size: 638 Bytes
Versions: 27
Compression:
Stored size: 638 Bytes
Contents
module Fog module Storage class OpenStack class Real # Get public_url for an object # # ==== Parameters # * container<~String> - Name of container to look in # * object<~String> - Name of object to look for # 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 private def url "#{@scheme}://#{@host}:#{@port}#{@path}" end end end end end
Version data entries
27 entries across 27 versions & 4 rubygems