Sha256: e1f478901a35ebc87e85215e2f5e5f827e82de03524980bc415d54a75d86f1a9

Contents?: true

Size: 422 Bytes

Versions: 3

Compression:

Stored size: 422 Bytes

Contents

require "film_snob/video_site"

class FilmSnob
  class Instagram < VideoSite
    def self.valid_url_patterns
      [
        %r{https?://(?:(?:www).)?instagram.com/p/(\w+)},
        %r{https?://(?:(?:www).)?instagr.am/p/(\w+)}
      ]
    end

    def self.oembed_endpoint
      "http://api.instagram.com/publicapi/oembed/"
    end

    def clean_url
      @clean_url ||= "http://instagram.com/p/#{id}"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
film_snob-0.6.4 lib/film_snob/video_sites/instagram.rb
film_snob-0.6.3 lib/film_snob/video_sites/instagram.rb
film_snob-0.6.2 lib/film_snob/video_sites/instagram.rb