# frozen_string_literal: true module Onebox module Engine class GoogleCalendarOnebox include Engine matches_domain("www.google.com", "google.com", "calendar.google.com", "goo.gl") always_https requires_iframe_origins "https://calendar.google.com" def self.matches_path(path) path.match?(%r{^/calendar/.*$}) end def to_html url = @url.split("&").first src = ::Onebox::Helpers.normalize_url_for_output(url) "" end def placeholder_html <<-HTML
Google Calendar