An open API service indexing awesome lists of open source software.

https://github.com/willrax/google-viewer

Easy to use Google Docs viewer url generator
https://github.com/willrax/google-viewer

Last synced: 10 months ago
JSON representation

Easy to use Google Docs viewer url generator

Awesome Lists containing this project

README

          

== GoogleView

Simple class for generating Google Viewer urls.

== Usage

require 'google-viewer'

g = Google::GoogleViewer.new('http://example.com/example.pdf')
g.viewer_url # http://docs.google.com/viewer?url=http%3A%2F%2Fexample.com%2Fexample.pdf
g.url # http://example.com/example.pdf