Sha256: 14b5fe85daf2f7cfa4cb5318a3d6ed336e76813621f6fcb31d1d5b2902c35029

Contents?: true

Size: 289 Bytes

Versions: 3

Compression:

Stored size: 289 Bytes

Contents

require "filezor/util"
# A File that knows its MD5 hash, and target upload path.
class Filezor::File  
  attr_accessor :tempfile, :md5, :path
  
  def initialize(tempfile, path, hash = nil)
    @tempfile = tempfile
    @path = path
    @md5 = hash || Filezor::Util::md5(tempfile)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
filezor-1.3.4 lib/filezor/file.rb
filezor-1.3.3 lib/filezor/file.rb
filezor-1.3.2 lib/filezor/file.rb