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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 319a1378a4827e9b36cbac7023f1fa37507da0c6
4
- data.tar.gz: 1051887458b895c9678b78d718031b298076469b
3
+ metadata.gz: a77b61ec14a5ca19f038f3618d48761c4070586b
4
+ data.tar.gz: f2578b6d11efe6df46f7e8c944097b2803677fa5
5
5
  SHA512:
6
- metadata.gz: 89ed56ae05a9642d33248971dd9088c5d6836020c898e4ac90cdf9c99c3298177079116387da0d6e92e310149842ff24c6e76827e41cba30b2a5f84779d0f11c
7
- data.tar.gz: 2fbe5a440bff9c3702b41c8e38a7e06963b0d9062f33502f65f0898cbb4b62fc01f5591b6cb8e567482889c0c38f8bb94bd030996604442d241dc7c76352fb6e
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
 
@@ -1,3 +1,3 @@
1
1
  module ClnkApi
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clnk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - amardaxini