class FilmSnob::Instagram

Public Class Methods

oembed_endpoint() click to toggle source
# File lib/film_snob/oembed_providers/instagram.rb, line 12
def self.oembed_endpoint
  "https://api.instagram.com/oembed/"
end
valid_url_patterns() click to toggle source
# File lib/film_snob/oembed_providers/instagram.rb, line 5
def self.valid_url_patterns
  [
    %r{https?://(?:(?:www).)?instagram.com/p/(\w+)},
    %r{https?://(?:(?:www).)?instagr.am/p/(\w+)}
  ]
end

Public Instance Methods

clean_url() click to toggle source
# File lib/film_snob/oembed_providers/instagram.rb, line 16
def clean_url
  @clean_url ||= "http://instagram.com/p/#{id}"
end