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