Class: BiblioTech::Backups::FileRecord
- Inherits:
-
Object
- Object
- BiblioTech::Backups::FileRecord
- Defined in:
- lib/bibliotech/backups/file_record.rb
Instance Attribute Summary collapse
-
#keep ⇒ Object
Returns the value of attribute keep.
-
#path ⇒ Object
Returns the value of attribute path.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(path, timestamp) ⇒ FileRecord
constructor
A new instance of FileRecord.
- #keep? ⇒ Boolean
Constructor Details
#initialize(path, timestamp) ⇒ FileRecord
Returns a new instance of FileRecord.
6 7 8 9 |
# File 'lib/bibliotech/backups/file_record.rb', line 6 def initialize(path, ) @path, = path, @keep = false end |
Instance Attribute Details
#keep ⇒ Object
Returns the value of attribute keep.
4 5 6 |
# File 'lib/bibliotech/backups/file_record.rb', line 4 def keep @keep end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/bibliotech/backups/file_record.rb', line 4 def path @path end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
4 5 6 |
# File 'lib/bibliotech/backups/file_record.rb', line 4 def end |
Instance Method Details
#keep? ⇒ Boolean
11 12 13 |
# File 'lib/bibliotech/backups/file_record.rb', line 11 def keep? !!@keep end |