Class: ArticleJSON::Utils::OEmbedResolver::VimeoVideo
- Defined in:
- lib/article_json/utils/o_embed_resolver/vimeo_video.rb
Instance Method Summary collapse
-
#name ⇒ String
Human readable name of the resolver.
-
#oembed_url ⇒ String
The URL for the oembed API call.
-
#source_url ⇒ String
The video URL of the element.
Methods inherited from Base
build, #initialize, #oembed_data, resolver_by_embed_type, #unavailable_message
Constructor Details
This class inherits a constructor from ArticleJSON::Utils::OEmbedResolver::Base
Instance Method Details
#name ⇒ String
Human readable name of the resolver
7 8 9 |
# File 'lib/article_json/utils/o_embed_resolver/vimeo_video.rb', line 7 def name 'Vimeo video' end |
#oembed_url ⇒ String
The URL for the oembed API call
13 14 15 |
# File 'lib/article_json/utils/o_embed_resolver/vimeo_video.rb', line 13 def "https://vimeo.com/api/oembed.json?url=#{source_url}" end |
#source_url ⇒ String
The video URL of the element
19 20 21 |
# File 'lib/article_json/utils/o_embed_resolver/vimeo_video.rb', line 19 def source_url "https://vimeo.com/#{@element.}" end |