Class: Onebox::Engine::VideoOnebox

Inherits:
Object
  • Object
show all
Includes:
Onebox::Engine
Defined in:
lib/onebox/engine/video_onebox.rb

Instance Attribute Summary

Attributes included from Onebox::Engine

#cache, #timeout, #url

Instance Method Summary collapse

Methods included from Onebox::Engine

engines, included, #initialize, #placeholder_html

Instance Method Details

#to_htmlObject



8
9
10
# File 'lib/onebox/engine/video_onebox.rb', line 8

def to_html
  "<video width='100%' height='100%' controls><source src='#{@url}'><a href='#{@url}'>#{@url}</a></video>"
end