Sha256: ddff148e03751c7344848bce8ba1ccb3cb7dceeeefa4124ed3111d51cd14bd9c
Contents?: true
Size: 432 Bytes
Versions: 6
Compression:
Stored size: 432 Bytes
Contents
require "film_snob/video_site" class FilmSnob class Rutube < VideoSite def initialize(url, options = {}) super(url, options.merge(format: :json)) end def self.valid_url_patterns [ %r{http://rutube.ru/video/(\w*)/} ] end def self.oembed_endpoint "http://rutube.ru/api/oembed/" end def clean_url @clean_url ||= "http://rutube.ru/video/#{id}/" end end end
Version data entries
6 entries across 6 versions & 1 rubygems