Class: Backup::Server
- Inherits:
-
Object
- Object
- Backup::Server
- Defined in:
- lib/backup/server.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#name ⇒ Object
Returns the value of attribute name.
-
#storage ⇒ Object
Returns the value of attribute storage.
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
3 4 5 |
# File 'lib/backup/server.rb', line 3 def config @config end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/backup/server.rb', line 3 def name @name end |
#storage ⇒ Object
Returns the value of attribute storage.
3 4 5 |
# File 'lib/backup/server.rb', line 3 def storage @storage end |
Instance Method Details
#backup ⇒ Object
5 6 7 |
# File 'lib/backup/server.rb', line 5 def backup storage.backup(self) if storage end |