Sha256: 0baa30bfc38109de668f2f3913765bd7a3b22431f2eb7bdc5087b9f7bc7ad7f6

Contents?: true

Size: 434 Bytes

Versions: 1

Compression:

Stored size: 434 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

1 entries across 1 versions & 1 rubygems

Version Path
film_snob-0.6.5 lib/film_snob/video_sites/rutube.rb