shortn-url 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shortn-url.rb +2 -3
- metadata +1 -1
data/lib/shortn-url.rb
CHANGED
@@ -7,9 +7,8 @@ require 'nokogiri'
|
|
7
7
|
class ShortnUrl
|
8
8
|
|
9
9
|
def initialize(opt={}, app_mgr=nil)
|
10
|
-
@
|
11
|
-
@
|
12
|
-
@doc = Nokogiri::XML(File.open(filepath,'r').read)
|
10
|
+
@filepath = opt[:filepath]
|
11
|
+
@doc = Nokogiri::XML(File.open(@filepath,'r').read)
|
13
12
|
end
|
14
13
|
|
15
14
|
# fetch the short url if it already exists otherwise use a new short url
|