Class: Backup::Storages::Base::Object

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

Direct Known Subclasses

AmazonS3::Object, Local::Object

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(storage, id) ⇒ Object

Returns a new instance of Object.



24
25
26
27
# File 'lib/backup-agent/storages/base.rb', line 24

def initialize(storage, id)
  @storage = storage
  @id      = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



22
23
24
# File 'lib/backup-agent/storages/base.rb', line 22

def id
  @id
end

#storageObject (readonly)

Returns the value of attribute storage.



22
23
24
# File 'lib/backup-agent/storages/base.rb', line 22

def storage
  @storage
end

Instance Method Details

#last_modifiedObject



29
30
31
# File 'lib/backup-agent/storages/base.rb', line 29

def last_modified
  method_not_implemented
end

#to_sObject



33
34
35
# File 'lib/backup-agent/storages/base.rb', line 33

def to_s
  id
end