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.
10 11 12 13 14 15 16 |
# File 'lib/fm/file.rb', line 10 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.
5 6 7 |
# File 'lib/fm/file.rb', line 5 def digest @digest end |
#fsize ⇒ Object (readonly)
Returns the value of attribute fsize.
4 5 6 |
# File 'lib/fm/file.rb', line 4 def fsize @fsize end |
#itime ⇒ Object
Returns the value of attribute itime.
8 9 10 |
# File 'lib/fm/file.rb', line 8 def itime @itime end |
#mtime ⇒ Object
Returns the value of attribute mtime.
7 8 9 |
# File 'lib/fm/file.rb', line 7 def mtime @mtime end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/fm/file.rb', line 6 def path @path end |