Sha256: fd06b9d6b568cd4b9b3af14d4076076dd40b114872dec70d21ca26237bae39bb
Contents?: true
Size: 261 Bytes
Versions: 3
Compression:
Stored size: 261 Bytes
Contents
require 'pathname' module WGif class VideoCache def initialize @cache = {} end def get(video_id) path = "/tmp/wgif/#{video_id}" if Pathname.new(path).exist? WGif::Video.new(video_id, path) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
wgif-0.2.0 | lib/wgif/video_cache.rb |
wgif-0.0.1 | lib/wgif/video_cache.rb |
wgif-0.0.1.pre | lib/wgif/video_cache.rb |