Class: Astrails::Safe::Backup
- Inherits:
-
Object
- Object
- Astrails::Safe::Backup
- Defined in:
- lib/astrails/safe/backup.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#compressed ⇒ Object
Returns the value of attribute compressed.
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#id ⇒ Object
Returns the value of attribute id.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#path ⇒ Object
Returns the value of attribute path.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Backup
constructor
A new instance of Backup.
- #run(config, *mods) ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Backup
Returns a new instance of Backup.
5 6 7 8 9 |
# File 'lib/astrails/safe/backup.rb', line 5 def initialize(opts = {}) opts.each do |k, v| self.send("#{k}=", v) end end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def command @command end |
#compressed ⇒ Object
Returns the value of attribute compressed.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def compressed @compressed end |
#extension ⇒ Object
Returns the value of attribute extension.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def extension @extension end |
#filename ⇒ Object
Returns the value of attribute filename.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def filename @filename end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def id @id end |
#kind ⇒ Object
Returns the value of attribute kind.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def kind @kind end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def path @path end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/astrails/safe/backup.rb', line 4 def @timestamp end |