Sha256: d67b7a8e485dca3b7cf8889ef21987f7d4de2323197c5a4a0969ab497d91face
Contents?: true
Size: 444 Bytes
Versions: 3
Compression:
Stored size: 444 Bytes
Contents
require "film_snob/oembed_provider" class FilmSnob class Rutube < OembedProvider 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
film_snob-2.0.0 | lib/film_snob/oembed_providers/rutube.rb |
film_snob-1.0.1 | lib/film_snob/oembed_providers/rutube.rb |
film_snob-1.0.0 | lib/film_snob/oembed_providers/rutube.rb |