Class: FileMonitoring::IdentFileInfo

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#checksumObject

Returns the value of attribute checksum.



29
30
31
# File 'lib/file_monitoring/monitor_path.rb', line 29

def checksum
  @checksum
end

#index_timeObject

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

#uniqueObject

Returns the value of attribute unique.



29
30
31
# File 'lib/file_monitoring/monitor_path.rb', line 29

def unique
  @unique
end