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