Sha256: 6c7474038b4443713e01950f7d56cf0434e30b740e0b6465556a98a98687e1f3

Contents?: true

Size: 492 Bytes

Versions: 6

Compression:

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

6 entries across 6 versions & 1 rubygems

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