class ArticleJSON::Utils::OEmbedResolver::FacebookVideo

Public Instance Methods

name() click to toggle source

Human readable name of the resolver @return [String]

# File lib/article_json/utils/o_embed_resolver/facebook_video.rb, line 7
def name
  'Facebook 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/facebook_video.rb, line 13
def oembed_url
  "https://www.facebook.com/plugins/video/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/facebook_video.rb, line 19
def source_url
  "https://www.facebook.com/facebook/videos/#{@element.embed_id}"
end