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 escaped_src = ::Onebox::Helpers.normalize_url_for_output(url) "" end def placeholder_html <<-HTML
Google Calendar