Class: Backup::AbstractStorageObject

Inherits:
Object
  • Object
show all
Defined in:
lib/backup-agent/abstract_storage_object.rb

Direct Known Subclasses

S3Object

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#envObject (readonly)

Returns the value of attribute env.



3
4
5
# File 'lib/backup-agent/abstract_storage_object.rb', line 3

def env
  @env
end

#keyObject (readonly)

Returns the value of attribute key.



3
4
5
# File 'lib/backup-agent/abstract_storage_object.rb', line 3

def key
  @key
end

#storageObject (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

#deleteObject



15
16
17
# File 'lib/backup-agent/abstract_storage_object.rb', line 15

def delete

end

#last_modifiedObject



11
12
13
# File 'lib/backup-agent/abstract_storage_object.rb', line 11

def last_modified

end