Class: Onebox::Engine::GoogleCalendarOnebox
- Inherits:
-
Object
- Object
- Onebox::Engine::GoogleCalendarOnebox
show all
- Includes:
- Onebox::Engine
- Defined in:
- lib/onebox/engine/google_calendar_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
14
15
16
17
18
19
20
21
22
|
# File 'lib/onebox/engine/google_calendar_onebox.rb', line 14
def placeholder_html
"<div placeholder><div class='gdocs-onebox gdocs-onebox-splash' style='display:table-cell;vertical-align:middle;width:800px;height:600px'>\n<div style='text-align:center;'>\n<div class='gdocs-onebox-logo g-calendar-logo'></div>\n<p>Google Calendar</p>\n</div></div></div>\n"
end
|
#to_html ⇒ Object
9
10
11
12
|
# File 'lib/onebox/engine/google_calendar_onebox.rb', line 9
def to_html
url = @url.split('&').first
"<iframe src='#{url}&rm=minimal' style='border: 0' width='800' height='600' frameborder='0' scrolling='no'>#{placeholder_html}</iframe>"
end
|