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

Version Path
film_snob-0.6.4 lib/film_snob/video_sites/rutube.rb
film_snob-0.6.3 lib/film_snob/video_sites/rutube.rb
film_snob-0.6.2 lib/film_snob/video_sites/rutube.rb
film_snob-0.6.1 lib/film_snob/video_sites/rutube.rb
film_snob-0.6.0 lib/film_snob/video_sites/rutube.rb
film_snob-0.5.0 lib/film_snob/video_sites/rutube.rb