Class: Backup::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/backup/server.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject

Returns the value of attribute config.



3
4
5
# File 'lib/backup/server.rb', line 3

def config
  @config
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/backup/server.rb', line 3

def name
  @name
end

#storageObject

Returns the value of attribute storage.



3
4
5
# File 'lib/backup/server.rb', line 3

def storage
  @storage
end

Instance Method Details

#backupObject



5
6
7
# File 'lib/backup/server.rb', line 5

def backup
  storage.backup(self) if storage
end