Sha256: 70fd55d10472bb6ce798e053c6dd278cc34e17ed5f46fd2a3d04a6658f893c85
Contents?: true
Size: 497 Bytes
Versions: 5
Compression:
Stored size: 497 Bytes
Contents
require "film_snob/video_site" class FilmSnob class Soundcloud < VideoSite def initialize(url, options = {}) super(url, options.merge(format: :json)) end def self.valid_url_patterns [ %r{https?://soundcloud.com/([^/]+/[^?]+)}, %r{https?://m.soundcloud.com/([^/]+/[^?]+)} ] end def self.oembed_endpoint "https://soundcloud.com/oembed" end def clean_url @clean_url ||= "https://soundcloud.com/#{id}" end end end
Version data entries
5 entries across 5 versions & 1 rubygems