Class: BiblioTech::Backups::FileRecord

Inherits:
Object
  • Object
show all
Defined in:
lib/bibliotech/backups/file_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, timestamp)
  @path, @timestamp = path, timestamp
  @keep = false
end

Instance Attribute Details

#keepObject

Returns the value of attribute keep.



4
5
6
# File 'lib/bibliotech/backups/file_record.rb', line 4

def keep
  @keep
end

#pathObject

Returns the value of attribute path.



4
5
6
# File 'lib/bibliotech/backups/file_record.rb', line 4

def path
  @path
end

#timestampObject

Returns the value of attribute timestamp.



4
5
6
# File 'lib/bibliotech/backups/file_record.rb', line 4

def timestamp
  @timestamp
end

Instance Method Details

#keep?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/bibliotech/backups/file_record.rb', line 11

def keep?
  !!@keep
end