module Onebox module Engine class GoogleCalendarOnebox include Engine matches_regexp /^(https?:)?\/\/(www\.google\.[\w.]{2,}|goo\.gl)\/calendar\/.+$/ always_https def to_html url = @url.split('&').first "" end end end end