Module: Fog::Storage::Google::Utils

Included in:
Mock, Real
Defined in:
lib/fog/google/storage.rb

Instance Method Summary collapse

Instance Method Details

#http_url(params, expires) ⇒ Object



39
40
41
# File 'lib/fog/google/storage.rb', line 39

def http_url(params, expires)
  "http://" << host_path_query(params, expires)
end

#https_url(params, expires) ⇒ Object



43
44
45
# File 'lib/fog/google/storage.rb', line 43

def https_url(params, expires)
  "https://" << host_path_query(params, expires)
end

#url(params, expires) ⇒ Object



47
48
49
50
# File 'lib/fog/google/storage.rb', line 47

def url(params, expires)
  Fog::Logger.deprecation("Fog::Storage::Google => #url is deprecated, use #https_url instead [light_black](#{caller.first})[/]")
  https_url(params, expires)
end