Module: GoiuShorten

Defined in:
lib/goiu_shorten.rb,
lib/goiu_shorten/version.rb,
lib/goiu_shorten/goiu_shorten_api.rb

Defined Under Namespace

Classes: GoiuShortenApi

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.expand(short_url) ⇒ Object



5
6
7
# File 'lib/goiu_shorten.rb', line 5

def self.expand(short_url)
  GoiuShortenApi.new.expand(short_url)
end

.shorten(long_url, passcode) ⇒ Object



9
10
11
# File 'lib/goiu_shorten.rb', line 9

def self.shorten(long_url, passcode)
  GoiuShortenApi.new.shorten(long_url, passcode)
end