clnk_api 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clnk_api/link.rb +3 -1
- data/lib/clnk_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a77b61ec14a5ca19f038f3618d48761c4070586b
|
4
|
+
data.tar.gz: f2578b6d11efe6df46f7e8c944097b2803677fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da6d3d08c28664db74967892d3185acdcfcf2485f23cf01ac6440a4b7c8a4b43fd08f94527593902c447470e1c29be8033199b53c01fe3af27ba5c35b2e4db76
|
7
|
+
data.tar.gz: 1013118cbe0246e185146993a6ca591717fbe799004899a329bdd596e3f7a2fb01787aeb9e9c0a6e7879345ad24b4451f48039e09c5af929f3893ad2c2c5bb65
|
data/lib/clnk_api/link.rb
CHANGED
@@ -3,7 +3,7 @@ module ClnkApi
|
|
3
3
|
class Link
|
4
4
|
include HTTParty
|
5
5
|
base_uri 'http://api.clnk.in'
|
6
|
-
attr_accessor :long_url, :short_url, :short_code,:api_key
|
6
|
+
attr_accessor :long_url, :short_url, :short_code,:api_key,:clicks
|
7
7
|
def initialize(api_key)
|
8
8
|
@api_key = api_key
|
9
9
|
end
|
@@ -68,6 +68,8 @@ module ClnkApi
|
|
68
68
|
self.long_url ||= url_data["long_url"]
|
69
69
|
self.short_url ||= url_data["short_url"]
|
70
70
|
self.short_code ||= url_data["short_code"]
|
71
|
+
self.clicks ||= url_data["clicks"]
|
72
|
+
|
71
73
|
end
|
72
74
|
end
|
73
75
|
|
data/lib/clnk_api/version.rb
CHANGED