Class: Onebox::Engine::ClassicGoogleMapsOnebox

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

Constant Summary

Constants included from Onebox::Engine

DEFUALT

Instance Attribute Summary

Attributes included from Onebox::Engine

#cache, #timeout

Instance Method Summary collapse

Methods included from LayoutSupport

#layout, max_text

Methods included from Onebox::Engine

engines, included, #initialize, #options, #options=, #placeholder_html

Instance Method Details

#to_htmlObject



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

#urlObject



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