Class: FM::FMFile

Inherits:
Object
  • Object
show all
Defined in:
lib/fm/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(fsize, path, digest, mtime, itime = Time.now) ⇒ FMFile

Returns a new instance of FMFile.



33
34
35
36
37
38
39
# File 'lib/fm/file.rb', line 33

def initialize(fsize, path, digest, mtime, itime = Time.now)
    @fsize = fsize
    @digest = digest
    @path = path
    @mtime = mtime
    @itime = itime      # Last index time.
end

Instance Attribute Details

#digestObject (readonly)

Returns the value of attribute digest.



28
29
30
# File 'lib/fm/file.rb', line 28

def digest
  @digest
end

#fsizeObject (readonly)

Returns the value of attribute fsize.



27
28
29
# File 'lib/fm/file.rb', line 27

def fsize
  @fsize
end

#itimeObject

Returns the value of attribute itime.



31
32
33
# File 'lib/fm/file.rb', line 31

def itime
  @itime
end

#mtimeObject

Returns the value of attribute mtime.



30
31
32
# File 'lib/fm/file.rb', line 30

def mtime
  @mtime
end

#pathObject (readonly)

Returns the value of attribute path.



29
30
31
# File 'lib/fm/file.rb', line 29

def path
  @path
end