class SwiftStorage::Account

Public Instance Methods

relative_path() click to toggle source
# File lib/swift_storage/account.rb, line 27
def relative_path
  ''
end
temp_url_key() click to toggle source

Returns the temporary URL key

@return [String]

Key used to sign temporary URLs
# File lib/swift_storage/account.rb, line 23
def temp_url_key
  metadata.temp_url_key rescue nil
end
write(temp_url_key: nil) click to toggle source

Write account meta data

@param temp_url_key [String]

The shared secret used to sign temporary URLs.
Changing this key will invalidate all temporary URLs signed with the older
key.
# File lib/swift_storage/account.rb, line 11
def write(temp_url_key: nil)
  h = {}
  h[ACCOUNT_TEMP_URL_KEY] = temp_url_key if temp_url_key

  request(relative_path, :method => :post, :headers => h)
end