Sha256: a53607b6bfe574a010bc6510694630dbddaf3f75a8996c527782dd5398d33a04
Contents?: true
Size: 379 Bytes
Versions: 14
Compression:
Stored size: 379 Bytes
Contents
module Onebox module Engine class GoogleCalendarOnebox include Engine matches_regexp /^(https?:)?\/\/(www\.google\.[\w.]{2,}|goo\.gl)\/calendar\/.+$/ 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
14 entries across 14 versions & 1 rubygems