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