Sha256: b0f23dffa37ceed5263ea73340859d491649f06e3e0143b5fea17b4d4e8230aa

Contents?: true

Size: 310 Bytes

Versions: 22

Compression:

Stored size: 310 Bytes

Contents

module Bulldog
  class SavedFile
    def initialize(path, options={})
      @path = path
      @file_name = options[:file_name]
    end

    attr_reader :path

    #
    # The original file name as it was uploaded, if any.
    #
    attr_reader :file_name

    def size
      File.size(path)
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bulldog-0.0.2 lib/bulldog/saved_file.rb
bulldog-0.0.1 lib/bulldog/saved_file.rb