Sha256: 8acb69a039ff36dc77c6f833a5be75abeeb71409836cf39a339346f6c664c11b

Contents?: true

Size: 336 Bytes

Versions: 5

Compression:

Stored size: 336 Bytes

Contents

require "film_snob/video_site"

class FilmSnob
  class Coub < VideoSite

    def self.valid_url_patterns
      [
        %r{https?://coub.com/view/(\w*)}
      ]
    end

    def clean_url
      @clean_url ||= "http://coub.com/view/#{id}"
    end

    def self.oembed_endpoint
      'http://coub.com/api/oembed.json'
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
film_snob-0.3.13 lib/film_snob/coub.rb
film_snob-0.3.12 lib/film_snob/coub.rb
film_snob-0.3.11 lib/film_snob/coub.rb
film_snob-0.3.10 lib/film_snob/coub.rb
film_snob-0.3.9 lib/film_snob/coub.rb