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
- Host: GitHub
- URL: https://github.com/willrax/google-viewer
- Owner: willrax
- Created: 2010-04-12T05:30:40.000Z (about 16 years ago)
- Default Branch: master
- Last Pushed: 2010-04-14T09:37:59.000Z (about 16 years ago)
- Last Synced: 2025-02-07T20:12:32.530Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
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