Module: Fog::Storage::InternetArchive::Utils

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#regionObject

Returns the value of attribute region.



62
63
64
# File 'lib/fog/storage/internet_archive.rb', line 62

def region
  @region
end

Instance Method Details

#http_url(params, expires) ⇒ Object



64
65
66
# File 'lib/fog/storage/internet_archive.rb', line 64

def http_url(params, expires)
  scheme_host_path_query(params.merge(:scheme => 'http', :port => 80), expires)
end

#https_url(params, expires) ⇒ Object



68
69
70
# File 'lib/fog/storage/internet_archive.rb', line 68

def https_url(params, expires)
  scheme_host_path_query(params.merge(:scheme => 'https', :port => 443), expires)
end

#url(params, expires) ⇒ Object



72
73
74
75
# File 'lib/fog/storage/internet_archive.rb', line 72

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