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
#errors, #timeout, #uri, #url
Instance Method Summary
collapse
all_iframe_origins, engines, included, #initialize, #options, #options=, origins_to_regexes
Instance Method Details
#placeholder_html ⇒ Object
25
26
27
|
# File 'lib/onebox/engine/typeform_onebox.rb', line 25
def placeholder_html
::Onebox::Helpers.generic_placeholder_html
end
|
#to_html ⇒ Object
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/onebox/engine/typeform_onebox.rb', line 12
def to_html
typeform_src = build_typeform_src
" <iframe src=\"\#{typeform_src}\"\n width=\"100%\"\n height=\"600px\"\n scrolling=\"no\"\n frameborder=\"0\">\n </iframe>\n HTML\nend\n"
|