Sha256: 65b4da49ca1784f7d66c40ddf0a485fe1a671c7c317d2ce33ee4a4461c16faa3

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

require "film_snob/video_site"

class FilmSnob
  class Vine < VideoSite
    def self.valid_url_patterns
      [
        %r{https://vine.co/v/(\w+)}
      ]
    end

    def clean_url
      @clean_url ||= "https://vine.co/v/#{id}"
    end

    def self.oembed_endpoint
      "https://vine.co/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/vine.rb
film_snob-0.6.3 lib/film_snob/video_sites/vine.rb
film_snob-0.6.2 lib/film_snob/video_sites/vine.rb
film_snob-0.6.1 lib/film_snob/video_sites/vine.rb
film_snob-0.6.0 lib/film_snob/video_sites/vine.rb
film_snob-0.5.0 lib/film_snob/video_sites/vine.rb