Class: Onebox::Engine::TypeformOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::TypeformOnebox
show all
- Includes:
- Onebox::Engine
- Defined in:
- lib/onebox/engine/typeform_onebox.rb
Constant Summary
DEFAULT
Instance Attribute Summary
#cache, #timeout, #uri, #url
Instance Method Summary
collapse
engines, included, #initialize, #options, #options=
Instance Method Details
#placeholder_html ⇒ Object
9
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/onebox/engine/typeform_onebox.rb', line 9
def placeholder_html
escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url)
" <iframe src=\"\#{escaped_url}\"\n width=\"100%\"\n height=\"600px\"\n scrolling=\"no\"\n frameborder=\"0\">\n </iframe>\n HTML\nend\n"
|
#to_html ⇒ Object
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/onebox/engine/typeform_onebox.rb', line 22
def to_html
escaped_url = ::Onebox::Helpers.normalize_url_for_output(@url)
" <iframe src=\"\#{escaped_url}\"\n width=\"100%\"\n height=\"600px\"\n scrolling=\"no\"\n frameborder=\"0\">\n </iframe>\n HTML\nend\n"
|