Sha256: 882b968fcc852bc824237f9b2838ee3d80c5392864c224efa1138158b7133aa0

Contents?: true

Size: 242 Bytes

Versions: 8

Compression:

Stored size: 242 Bytes

Contents

require 'pathname'

module WGif
  class VideoCache

    def initialize
      @cache = {}
    end

    def get(video_id)
      path = "/tmp/wgif/#{video_id}"
      WGif::Video.new(video_id, path) if Pathname.new(path).exist?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
wgif-0.5.4 lib/wgif/video_cache.rb
wgif-0.5.3 lib/wgif/video_cache.rb
wgif-0.5.2 lib/wgif/video_cache.rb
wgif-0.5.1 lib/wgif/video_cache.rb
wgif-0.5.0 lib/wgif/video_cache.rb
wgif-0.4.0 lib/wgif/video_cache.rb
wgif-0.3.1 lib/wgif/video_cache.rb
wgif-0.3.0 lib/wgif/video_cache.rb