Sha256: 3adb8877f9a0ae98d3666412fd26dad2c6d218f83e0eb1b8ef48e0c99a0b24f5

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

require "film_snob/oembed_provider"

class FilmSnob
  class Vine < OembedProvider
    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

3 entries across 3 versions & 1 rubygems

Version Path
film_snob-2.0.0 lib/film_snob/oembed_providers/vine.rb
film_snob-1.0.1 lib/film_snob/oembed_providers/vine.rb
film_snob-1.0.0 lib/film_snob/oembed_providers/vine.rb