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

Version Path
onebox-1.5.21 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.20 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.19 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.18 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.17 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.16 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.14 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.13 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.12 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.11 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.10 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.9 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.8 lib/onebox/engine/google_calendar_onebox.rb
onebox-1.5.7 lib/onebox/engine/google_calendar_onebox.rb