Sha256: 86d7ad0eb168e2aca2b459c15118014d5deba678e14bed04ab56bbfa383a9b86
Contents?: true
Size: 725 Bytes
Versions: 1
Compression:
Stored size: 725 Bytes
Contents
require 'httparty' require 'crack' require 'ostruct' module Shorty class SimpleAPI def shorten(url) self.class.get(self.class::API_URL, :query => self.class.prep_query(url)) end def self.shorten(url) get(self::API_URL, :query => self.prep_query(url)) end end require File.dirname(__FILE__) + '/shorty/to_openstruct' require File.dirname(__FILE__) + '/shorty/trim' require File.dirname(__FILE__) + '/shorty/bitly' require File.dirname(__FILE__) + '/shorty/tinyurl' require File.dirname(__FILE__) + '/shorty/isgd' require File.dirname(__FILE__) + '/shorty/cligs' require File.dirname(__FILE__) + '/shorty/twurl' require File.dirname(__FILE__) + '/shorty/supr' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shorty-0.1.2 | lib/shorty.rb |