Class: Filezor::File
- Inherits:
-
Object
- Object
- Filezor::File
- Defined in:
- lib/filezor/file.rb
Overview
A File that knows its MD5 hash, and target upload path.
Instance Attribute Summary collapse
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#path ⇒ Object
Returns the value of attribute path.
-
#tempfile ⇒ Object
Returns the value of attribute tempfile.
Instance Method Summary collapse
-
#initialize(tempfile, path, hash = nil) ⇒ File
constructor
A new instance of File.
Constructor Details
Instance Attribute Details
#md5 ⇒ Object
Returns the value of attribute md5.
4 5 6 |
# File 'lib/filezor/file.rb', line 4 def md5 @md5 end |
#path ⇒ Object
Returns the value of attribute path.
4 5 6 |
# File 'lib/filezor/file.rb', line 4 def path @path end |
#tempfile ⇒ Object
Returns the value of attribute tempfile.
4 5 6 |
# File 'lib/filezor/file.rb', line 4 def tempfile @tempfile end |