proz 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/proz/version.rb +1 -1
- data/lib/proz/wiwo_entries.rb +9 -3
- 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: 4c985fdf49664430f32bf62fa0b3c2efb85ec15c
|
4
|
+
data.tar.gz: 3b474ae58c23157bfe6c3fad804274b6de575284
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e574b5110d6aa7f8c1eedc342c5c8d9ec6bbf42445086efc07ddd29ff4f5fab95de4c599e6eb21e1aa7f8297ee9b50cc2af12e6e709404e8b68b4ba7b27864
|
7
|
+
data.tar.gz: 1f8a631c41f531333f844656b9bacdc3f5bc9890efca25b846dd91840a8dfaf2f28f7b95278481e030157cdfa8e461ddf8dfac3021ff0f04b92595ff292dbec0
|
data/lib/proz/version.rb
CHANGED
data/lib/proz/wiwo_entries.rb
CHANGED
@@ -10,19 +10,25 @@ module Proz
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def entries
|
13
|
-
|
13
|
+
all_wiwos
|
14
14
|
end
|
15
15
|
|
16
16
|
def wiwo_entries
|
17
|
-
|
17
|
+
all_wiwos.entries["wiwos"]
|
18
18
|
end
|
19
19
|
|
20
20
|
def user_entries
|
21
|
-
|
21
|
+
all_wiwos.entries["users"]
|
22
22
|
end
|
23
23
|
|
24
24
|
def user_entries(user_uuid)
|
25
25
|
self.class.get("/wiwo?user_uuid=" + user_uuid, headers: { 'X-Proz-API-Key' => api_key })
|
26
26
|
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def all_wiwos
|
31
|
+
@wiwos ||= self.class.get("/wiwo", headers: { 'X-Proz-API-Key' => api_key })
|
32
|
+
end
|
27
33
|
end
|
28
34
|
end
|