Class: Onebox::Engine::VideoOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::VideoOnebox
- Includes:
- Onebox::Engine
- Defined in:
- lib/onebox/engine/video_onebox.rb
Instance Attribute Summary
Attributes included from Onebox::Engine
Instance Method Summary collapse
Methods included from Onebox::Engine
engines, included, #initialize, #placeholder_html
Instance Method Details
#to_html ⇒ Object
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 |