Class: 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.
Attributes inherited from Model
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).
Methods inherited from Model
#initialize, #inspect, #symbolize_keys, #to_json, #wait_for
Methods included from Attributes::ClassMethods
#_load, #aliases, #attribute, #attributes, #identity, #ignore_attributes, #ignored_attributes
Methods included from Core::DeprecatedConnectionAccessors
#connection, #connection=, #prepare_service_value
Methods included from Attributes::InstanceMethods
#_dump, #attributes, #dup, #identity, #identity=, #merge_attributes, #new_record?, #persisted?, #requires, #requires_one
Constructor Details
This class inherits a constructor from Fog::Model
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 |