Class: Backup::AbstractStorageObject
- Inherits:
-
Object
- Object
- Backup::AbstractStorageObject
- Defined in:
- lib/backup-agent/abstract_storage_object.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#env ⇒ Object
readonly
Returns the value of attribute env.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#storage ⇒ Object
readonly
Returns the value of attribute storage.
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(storage, key, env = {}) ⇒ AbstractStorageObject
constructor
A new instance of AbstractStorageObject.
- #last_modified ⇒ Object
Constructor Details
#initialize(storage, key, env = {}) ⇒ AbstractStorageObject
Returns a new instance of AbstractStorageObject.
5 6 7 8 9 |
# File 'lib/backup-agent/abstract_storage_object.rb', line 5 def initialize(storage, key, env = {}) @storage = storage @key = key @env = env end |
Instance Attribute Details
#env ⇒ Object (readonly)
Returns the value of attribute env.
3 4 5 |
# File 'lib/backup-agent/abstract_storage_object.rb', line 3 def env @env end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
3 4 5 |
# File 'lib/backup-agent/abstract_storage_object.rb', line 3 def key @key end |
#storage ⇒ Object (readonly)
Returns the value of attribute storage.
3 4 5 |
# File 'lib/backup-agent/abstract_storage_object.rb', line 3 def storage @storage end |
Instance Method Details
#delete ⇒ Object
15 16 17 |
# File 'lib/backup-agent/abstract_storage_object.rb', line 15 def delete end |
#last_modified ⇒ Object
11 12 13 |
# File 'lib/backup-agent/abstract_storage_object.rb', line 11 def last_modified end |