Sha256: aeeb7c64f72944d63de716f625746415466ac181c7acaf6f950de59c51bd5f6d
Contents?: true
Size: 409 Bytes
Versions: 7
Compression:
Stored size: 409 Bytes
Contents
module Onebox module Engine class GoogleCalendarOnebox include Engine matches_regexp /^(https?:)?\/\/((www|calendar)\.google\.[\w.]{2,}|goo\.gl)\/calendar\/.+$/ always_https def to_html url = @url.split('&').first "<iframe src='#{url}&rm=minimal' style='border: 0' width='800' height='600' frameborder='0' scrolling='no' ></iframe>" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems