patient_zero 0.5.6 → 0.5.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2aa24126e715d27d3a0529f9813dece06db5e590
|
4
|
+
data.tar.gz: 9ddf973aa5680b4c2eb9f224b746866deced8bb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a253bcb54cdf7a7999c0c9f9fa54413b369508b8c287230f5304d8514add028eff0a363510bc1e90eee9f815d6e6dc9d7ee1d1e8f585268cd3d87f01bf28f9e1
|
7
|
+
data.tar.gz: 8b3ce8a4ef8408f3a9c18542d471b107ed9ed1bc59efd417c1a300347f4ce3d0fb5dc6e0926af83159037a3cf93a14b830250573a523d6ec405c238125e8979b
|
@@ -10,7 +10,23 @@ module PatientZero
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def followers
|
13
|
-
analytical_data
|
13
|
+
analytical_data['total_followers'].to_i
|
14
|
+
end
|
15
|
+
|
16
|
+
def reach
|
17
|
+
nil
|
18
|
+
end
|
19
|
+
|
20
|
+
def impressions_by_city
|
21
|
+
{}
|
22
|
+
end
|
23
|
+
|
24
|
+
def likes
|
25
|
+
analytical_data['total_likes'].to_i
|
26
|
+
end
|
27
|
+
|
28
|
+
def total_comments
|
29
|
+
analytical_data['total_comments'].to_i
|
14
30
|
end
|
15
31
|
end
|
16
32
|
end
|
@@ -20,6 +20,22 @@ module PatientZero
|
|
20
20
|
def likes
|
21
21
|
analytical_data.fetch('total_likes').to_i
|
22
22
|
end
|
23
|
+
|
24
|
+
def impressions_by_city
|
25
|
+
{}
|
26
|
+
end
|
27
|
+
|
28
|
+
def total_comments
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
def impressions
|
33
|
+
nil
|
34
|
+
end
|
35
|
+
|
36
|
+
def reach
|
37
|
+
nil
|
38
|
+
end
|
23
39
|
end
|
24
40
|
end
|
25
41
|
end
|
@@ -2,7 +2,7 @@ module PatientZero
|
|
2
2
|
module Analytics
|
3
3
|
class Twitter < Base
|
4
4
|
def impressions
|
5
|
-
analytical_data['total_impressions']
|
5
|
+
analytical_data['total_impressions'].to_i
|
6
6
|
end
|
7
7
|
|
8
8
|
def engagements
|
@@ -20,6 +20,14 @@ module PatientZero
|
|
20
20
|
def likes
|
21
21
|
analytical_data['total_favorites'].to_i
|
22
22
|
end
|
23
|
+
|
24
|
+
def impressions_by_city
|
25
|
+
{}
|
26
|
+
end
|
27
|
+
|
28
|
+
def total_comments
|
29
|
+
nil
|
30
|
+
end
|
23
31
|
end
|
24
32
|
end
|
25
33
|
end
|
data/lib/patient_zero/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: patient_zero
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Zaninovich
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-05-
|
12
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
183
|
version: '0'
|
184
184
|
requirements: []
|
185
185
|
rubyforge_project:
|
186
|
-
rubygems_version: 2.
|
186
|
+
rubygems_version: 2.2.2
|
187
187
|
signing_key:
|
188
188
|
specification_version: 4
|
189
189
|
summary: A gem to use the Viral Heat API
|