Class: FM::FMFile
- Inherits:
-
Object
- Object
- FM::FMFile
- Defined in:
- lib/fm/file.rb
Instance Attribute Summary collapse
-
#digest ⇒ Object
readonly
Returns the value of attribute digest.
-
#fsize ⇒ Object
readonly
Returns the value of attribute fsize.
-
#itime ⇒ Object
Returns the value of attribute itime.
-
#mtime ⇒ Object
Returns the value of attribute mtime.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(fsize, path, digest, mtime, itime = Time.now) ⇒ FMFile
constructor
A new instance of FMFile.
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
#digest ⇒ Object (readonly)
Returns the value of attribute digest.
28 29 30 |
# File 'lib/fm/file.rb', line 28 def digest @digest end |
#fsize ⇒ Object (readonly)
Returns the value of attribute fsize.
27 28 29 |
# File 'lib/fm/file.rb', line 27 def fsize @fsize end |
#itime ⇒ Object
Returns the value of attribute itime.
31 32 33 |
# File 'lib/fm/file.rb', line 31 def itime @itime end |
#mtime ⇒ Object
Returns the value of attribute mtime.
30 31 32 |
# File 'lib/fm/file.rb', line 30 def mtime @mtime end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
29 30 31 |
# File 'lib/fm/file.rb', line 29 def path @path end |