Class: Fog::Storage::Rackspace::Account
- Inherits:
-
Model
- Object
- Model
- Fog::Storage::Rackspace::Account
- Defined in:
- lib/fog/rackspace/models/storage/account.rb
Instance Attribute Summary collapse
-
#bytes_used ⇒ Integer
readonly
The total number of bytes used by the account.
-
#container_count ⇒ Integer
readonly
The number of containers in account.
-
#meta_temp_url_key ⇒ String
The temporary URL key used to generate temporary access to files.
-
#object_count ⇒ Integer
readonly
The total number of objects in the account.
Instance Method Summary collapse
-
#reload ⇒ Fog::Storage::Rackspace::Account
Reload account with latest data from Cloud Files.
-
#save ⇒ Boolean
Saves account settings (meta_temp_url_key).
Instance Attribute Details
#bytes_used ⇒ Integer (readonly)
Returns The total number of bytes used by the account.
20 |
# File 'lib/fog/rackspace/models/storage/account.rb', line 20 attribute :bytes_used, :aliases => 'X-Account-Bytes-Used', :type => :integer |
#container_count ⇒ Integer (readonly)
Returns The number of containers in account.
16 |
# File 'lib/fog/rackspace/models/storage/account.rb', line 16 attribute :container_count, :aliases => 'X-Account-Container-Count', :type => :integer |
#meta_temp_url_key ⇒ String
Returns The temporary URL key used to generate temporary access to files.
12 |
# File 'lib/fog/rackspace/models/storage/account.rb', line 12 attribute :meta_temp_url_key, :aliases => 'X-Account-Meta-Temp-Url-Key' |
#object_count ⇒ Integer (readonly)
Returns The total number of objects in the account.
24 |
# File 'lib/fog/rackspace/models/storage/account.rb', line 24 attribute :object_count, :aliases => 'X-Account-Object-Count', :type => :integer |
Instance Method Details
#reload ⇒ Fog::Storage::Rackspace::Account
Reload account with latest data from Cloud Files
43 44 45 46 |
# File 'lib/fog/rackspace/models/storage/account.rb', line 43 def reload response = service.head_containers merge_attributes response.headers end |
#save ⇒ Boolean
Saves account settings (meta_temp_url_key)
32 33 34 35 |
# File 'lib/fog/rackspace/models/storage/account.rb', line 32 def save service. true end |