Sha256: 4c9ebc182de6bc1c5deaefd26efe4718f79dd1e51089a1edc845da560f03a8af

Contents?: true

Size: 418 Bytes

Versions: 6

Compression:

Stored size: 418 Bytes

Contents

module Shutterbug
  module Storage
    class FileStorage
      attr_accessor :filename
      attr_accessor :config
      attr_accessor :url

      def initialize(filename, file_handler)
        @filename = Configuration.instance.fs_path_for(filename)
        @url = file_handler.urlify(filename)
      end

      def get_content
        file = File.open(@filename, 'r')
        return file
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shutterbug-0.2.5 lib/shutterbug/storage/file_storage.rb
shutterbug-0.2.1 lib/shutterbug/storage/file_storage.rb
shutterbug-0.2.0 lib/shutterbug/storage/file_storage.rb
shutterbug-0.1.2 lib/shutterbug/storage/file_storage.rb
shutterbug-0.1.1 lib/shutterbug/storage/file_storage.rb
shutterbug-0.1.0 lib/shutterbug/storage/file_storage.rb