cypher / long_url
- Source
- Commits
- Network (1)
- Issues (0)
- Wiki (1)
- Graphs
-
Branch:
master
commit 281bb96ac25418322069f9c65d92375c06558584
tree 900a3d9265dc7dbef71b605484a4c98cd67fc273
parent 808ed13bc93c70945995c08b34c29ea25608136f
tree 900a3d9265dc7dbef71b605484a4c98cd67fc273
parent 808ed13bc93c70945995c08b34c29ea25608136f
long_url /
| name | age | message | |
|---|---|---|---|
| |
.document | ||
| |
.gitignore | ||
| |
LICENSE | ||
| |
README.rdoc | ||
| |
Rakefile | ||
| |
VERSION | ||
| |
lib/ | ||
| |
long_url.gemspec | ||
| |
test/ |
README.rdoc
long_url
A small wrapper for the Long URL Please (www.longurlplease.com/) API.
See www.longurlplease.com/docs for the API docs.
Usage
require 'long_url'
LongUrl.longen("http://bit.ly/enAo") # => { "http://bit.ly/enAo" => "http://www.boasas.com/?c=1030"}
You can also include LongUrl inside a class of yours:
require 'long_url'
class MyNiftyClass
include LongUrl
def my_nifty_method
longen("http://bit.ly/enAo")
end
end
Copyright
Copyright © 2009 Markus Prinz. See LICENSE for details.

