Sha256: a0bd88f1786082eaf8ca6425dd1ea09639997c9f897936c468ab9f0696f00c90

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
film_snob-0.6.5 lib/film_snob/video_sites/vine.rb