Class: Onebox::Engine::ClassicGoogleMapsOnebox
Constant Summary
DEFUALT
Instance Attribute Summary
#cache, #timeout
Instance Method Summary
collapse
#layout, max_text
engines, included, #initialize, #options, #options=, #placeholder_html
Instance Method Details
#to_html ⇒ Object
14
15
16
|
# File 'lib/onebox/engine/classic_google_maps_onebox.rb', line 14
def to_html
"<iframe src='#{url}&output=embed' width='690px' height='400px' frameborder='0' style='border:0'></iframe>"
end
|
#url ⇒ Object
9
10
11
12
|
# File 'lib/onebox/engine/classic_google_maps_onebox.rb', line 9
def url
@url = get_long_url if @url.include?("//goo.gl/maps/")
@url
end
|