Class: SwiftStorage::Account
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #relative_path ⇒ Object
-
#temp_url_key ⇒ String
Returns the temporary URL key.
-
#write(temp_url_key: nil) ⇒ Object
Write account meta data.
Methods inherited from Node
#clear_cache, #delete, #delete_if_exists, #exists?, #get_lines, #headers, #initialize, #metadata, #request, #service, #to_s
Methods included from Utils
Constructor Details
This class inherits a constructor from SwiftStorage::Node
Instance Method Details
#relative_path ⇒ Object
29 30 31 |
# File 'lib/swift_storage/account.rb', line 29 def relative_path '' end |
#temp_url_key ⇒ String
Returns the temporary URL key
25 26 27 |
# File 'lib/swift_storage/account.rb', line 25 def temp_url_key .temp_url_key rescue nil end |
#write(temp_url_key: nil) ⇒ Object
Write account meta data
13 14 15 16 17 18 |
# File 'lib/swift_storage/account.rb', line 13 def write(temp_url_key: nil) h = {} h[H::ACCOUNT_TEMP_URL_KEY] = temp_url_key if temp_url_key request(relative_path, :method => :post, :headers => h) end |