Sha256: 78327e74239385a05626f346b16b86ff6f20bc7cdda347e7194f2e3a7509ac3b
Contents?: true
Size: 491 Bytes
Versions: 1
Compression:
Stored size: 491 Bytes
Contents
require "film_snob/video_site" class FilmSnob class Vimeo < VideoSite def self.valid_url_patterns [ %r{https?://vimeo.com/(\d{1,})}, %r{https?://vimeo.com/m/(\d{1,})}, %r{https?://vimeo.com/couchmode/\w+/[\w:]+/(\d{1,})}, %r{https?://vimeo.com/channels/\w+/(\d{1,})} ] end def clean_url @clean_url ||= "https://vimeo.com/#{id}" end def self.oembed_endpoint "http://vimeo.com/api/oembed.json" 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/vimeo.rb |