Sha256: 814a19ce8425283ad2c8d857533513f991e7977dcfa2ba82fdc32de4a0ffb79f

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

module FileUpload
  class TempFile
    attr_accessor :name, :content_type, :data, :size

    include FileUpload::RedisFileReadable

    def initialize(attributes = {})
      attributes.each do |k, v|
        self.send("#{k}=", v) if respond_to?("#{k}=")
      end
    end

    def persisted?
      false
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
file_upload-0.0.3 app/models/file_upload/temp_file.rb
file_upload-0.0.2 app/models/file_upload/temp_file.rb
file_upload-0.0.1 app/models/file_upload/temp_file.rb