class ArticleJSON::Utils::OEmbedResolver::Soundcloud
Public Instance Methods
name()
click to toggle source
Human readable name of the resolver @return [String]
# File lib/article_json/utils/o_embed_resolver/soundcloud.rb, line 7 def name 'Soundcloud' end
oembed_url()
click to toggle source
The URL for the oembed API call @return [String]
# File lib/article_json/utils/o_embed_resolver/soundcloud.rb, line 13 def oembed_url "https://soundcloud.com/oembed?url=#{source_url}&format=json" end
source_url()
click to toggle source
The URL of the element @return [String]
# File lib/article_json/utils/o_embed_resolver/soundcloud.rb, line 19 def source_url "https://soundcloud.com/#{@element.embed_id}" end