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.2.4 lib/bulldog/saved_file.rb
bulldog-0.2.3 lib/bulldog/saved_file.rb
bulldog-0.2.2 lib/bulldog/saved_file.rb
bulldog-0.2.1 lib/bulldog/saved_file.rb
bulldog-0.2.0 lib/bulldog/saved_file.rb
bulldog-0.1.1 lib/bulldog/saved_file.rb
bulldog-0.1.0 lib/bulldog/saved_file.rb
bulldog-0.0.15 lib/bulldog/saved_file.rb
bulldog-0.0.14 lib/bulldog/saved_file.rb
bulldog-0.0.13 lib/bulldog/saved_file.rb
bulldog-0.0.12 lib/bulldog/saved_file.rb
bulldog-0.0.11 lib/bulldog/saved_file.rb
bulldog-0.0.10 lib/bulldog/saved_file.rb
bulldog-0.0.9 lib/bulldog/saved_file.rb
bulldog-0.0.8 lib/bulldog/saved_file.rb
bulldog-0.0.7 lib/bulldog/saved_file.rb
bulldog-0.0.6 lib/bulldog/saved_file.rb
bulldog-0.0.5 lib/bulldog/saved_file.rb
bulldog-0.0.3 lib/bulldog/saved_file.rb
bulldog-0.0.4 lib/bulldog/saved_file.rb