Class: FileMonitoring::IdentFileInfo
- Inherits:
-
Object
- Object
- FileMonitoring::IdentFileInfo
- Defined in:
- lib/file_monitoring/monitor_path.rb
Overview
Used for dir rename. Holds following info:
checksum = checksum of the file
index_time = index time of the file
unique - if same key (file attributes) found more then once, we mark the file as not unique.
This means that the file needs to be indexed.
In the manual changes phase, the file will be skipped.
Instance Attribute Summary collapse
-
#checksum ⇒ Object
Returns the value of attribute checksum.
-
#index_time ⇒ Object
Returns the value of attribute index_time.
-
#unique ⇒ Object
Returns the value of attribute unique.
Instance Method Summary collapse
-
#initialize(checksum, index_time) ⇒ IdentFileInfo
constructor
A new instance of IdentFileInfo.
Constructor Details
#initialize(checksum, index_time) ⇒ IdentFileInfo
Returns a new instance of IdentFileInfo.
30 31 32 33 34 |
# File 'lib/file_monitoring/monitor_path.rb', line 30 def initialize(checksum, index_time) @checksum = checksum @index_time = index_time @unique = true end |
Instance Attribute Details
#checksum ⇒ Object
Returns the value of attribute checksum.
29 30 31 |
# File 'lib/file_monitoring/monitor_path.rb', line 29 def checksum @checksum end |
#index_time ⇒ Object
Returns the value of attribute index_time.
29 30 31 |
# File 'lib/file_monitoring/monitor_path.rb', line 29 def index_time @index_time end |
#unique ⇒ Object
Returns the value of attribute unique.
29 30 31 |
# File 'lib/file_monitoring/monitor_path.rb', line 29 def unique @unique end |