Class: MediaEmbed::Video
- Inherits:
-
Object
- Object
- MediaEmbed::Video
- Defined in:
- lib/media_embed/video.rb
Class Method Summary collapse
Class Method Details
.vimeo_template(code, options = {}) ⇒ Object
7 8 9 |
# File 'lib/media_embed/video.rb', line 7 def self.vimeo_template(code, = {}) iframe("//player.vimeo.com/video/#{code}", ) end |
.youtube_template(code, options = {}) ⇒ Object
3 4 5 |
# File 'lib/media_embed/video.rb', line 3 def self.youtube_template(code, = {}) iframe("//www.youtube.com/embed/#{code}/enablejsapi=1", ) end |