Class: Frizz::Local::File
- Inherits:
-
Object
- Object
- Frizz::Local::File
- Defined in:
- lib/frizz/local.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #checksum ⇒ Object
-
#initialize(path, key, options = {}) ⇒ File
constructor
A new instance of File.
- #upload_options ⇒ Object
Constructor Details
#initialize(path, key, options = {}) ⇒ File
Returns a new instance of File.
60 61 62 63 64 |
# File 'lib/frizz/local.rb', line 60 def initialize(path, key, = {}) @path = path @key = key @options = end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
58 59 60 |
# File 'lib/frizz/local.rb', line 58 def key @key end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
58 59 60 |
# File 'lib/frizz/local.rb', line 58 def path @path end |
Instance Method Details
#checksum ⇒ Object
66 67 68 69 |
# File 'lib/frizz/local.rb', line 66 def checksum return nil if [:redirect_to] Digest::MD5.file(path) end |
#upload_options ⇒ Object
71 72 73 |
# File 'lib/frizz/local.rb', line 71 def end |